nixpkgs/pkgs/tools/system/setserial/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
657 B
Nix
Raw Normal View History

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