2021-01-15 12:19:50 +03:00
|
|
|
{ lib, stdenv, fetchurl, groff }:
|
2015-06-15 15:27:01 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "setserial";
|
2015-06-15 15:27:01 +03:00
|
|
|
version = "2.17";
|
2009-06-09 08:22:46 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 15:41:18 +03:00
|
|
|
url = "mirror://sourceforge/setserial/${pname}-${version}.tar.gz";
|
2009-06-09 08:22:46 +04:00
|
|
|
sha256 = "0jkrnn3i8gbsl48k3civjmvxyv9rbm1qjha2cf2macdc439qfi3y";
|
|
|
|
};
|
|
|
|
|
2022-07-20 07:21:25 +03:00
|
|
|
nativeBuildInputs = [ groff ];
|
2009-06-09 08:22:46 +04:00
|
|
|
|
2019-11-05 04:10:31 +03:00
|
|
|
installFlags = [ "DESTDIR=$(out)" ];
|
2009-06-09 08:22:46 +04:00
|
|
|
|
2015-06-15 15:27:01 +03:00
|
|
|
postConfigure = ''
|
2009-06-09 08:22:46 +04:00
|
|
|
sed -e s@/usr/man/@/share/man/@ -i Makefile
|
2015-06-15 15:27:01 +03:00
|
|
|
'';
|
2009-06-09 08:22:46 +04:00
|
|
|
|
2015-06-15 15:27:01 +03:00
|
|
|
preInstall = ''mkdir -p "$out/bin" "$out/share/man/man8"'';
|
2015-09-15 07:27:19 +03:00
|
|
|
|
2009-06-09 08:22:46 +04:00
|
|
|
meta = {
|
|
|
|
description = "Serial port configuration utility";
|
2021-01-15 12:19:50 +03:00
|
|
|
platforms = lib.platforms.linux;
|
2024-04-26 14:35:31 +03:00
|
|
|
license = lib.licenses.gpl2Only;
|
2023-11-27 04:17:53 +03:00
|
|
|
mainProgram = "setserial";
|
2009-06-09 08:22:46 +04:00
|
|
|
};
|
|
|
|
}
|