1 { lib, stdenv, fetchurl, groff }:
3 stdenv.mkDerivation rec {
8 url = "mirror://sourceforge/setserial/${pname}-${version}.tar.gz";
9 sha256 = "0jkrnn3i8gbsl48k3civjmvxyv9rbm1qjha2cf2macdc439qfi3y";
12 nativeBuildInputs = [ groff ];
14 installFlags = [ "DESTDIR=$(out)" ];
17 sed -e s@/usr/man/@/share/man/@ -i Makefile
20 preInstall = ''mkdir -p "$out/bin" "$out/share/man/man8"'';
23 description = "Serial port configuration utility";
24 platforms = lib.platforms.linux;
25 license = lib.licenses.gpl2Only;
26 mainProgram = "setserial";