2015-06-15 14:27:01 +02:00
|
|
|
{ stdenv, fetchurl, groff }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "setserial-${version}";
|
|
|
|
version = "2.17";
|
2009-06-09 06:22:46 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-06-15 14:27:01 +02:00
|
|
|
url = "mirror://sourceforge/setserial/${name}.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
|
|
|
|
2015-06-15 14:27:01 +02: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;
|
2009-06-09 06:22:46 +02:00
|
|
|
};
|
|
|
|
}
|