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