2015-06-15 14:27:01 +02:00
|
|
|
{ stdenv, fetchurl, groff }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "setserial";
|
2015-06-15 14:27:01 +02:00
|
|
|
version = "2.17";
|
2009-06-09 06:22:46 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "mirror://sourceforge/setserial/${pname}-${version}.tar.gz";
|
2009-06-09 06:22:46 +02:00
|
|
|
sha256 = "0jkrnn3i8gbsl48k3civjmvxyv9rbm1qjha2cf2macdc439qfi3y";
|
|
|
|
};
|
|
|
|
|
2015-06-15 14:27:01 +02:00
|
|
|
buildInputs = [ groff ];
|
2009-06-09 06:22:46 +02:00
|
|
|
|
2019-11-05 02:10:31 +01:00
|
|
|
installFlags = [ "DESTDIR=$(out)" ];
|
2009-06-09 06:22:46 +02:00
|
|
|
|
2015-06-15 14:27:01 +02:00
|
|
|
postConfigure = ''
|
2009-06-09 06:22:46 +02:00
|
|
|
sed -e s@/usr/man/@/share/man/@ -i Makefile
|
2015-06-15 14:27:01 +02:00
|
|
|
'';
|
2009-06-09 06:22:46 +02:00
|
|
|
|
2015-06-15 14:27:01 +02:00
|
|
|
preInstall = ''mkdir -p "$out/bin" "$out/share/man/man8"'';
|
2015-09-15 06:27:19 +02:00
|
|
|
|
2009-06-09 06:22:46 +02:00
|
|
|
meta = {
|
|
|
|
description = "Serial port configuration utility";
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2018-08-04 18:41:06 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2009-06-09 06:22:46 +02:00
|
|
|
};
|
|
|
|
}
|