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