nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 43 lines 876 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 groff, 6 autoreconfHook, 7}: 8 9stdenv.mkDerivation rec { 10 pname = "setserial"; 11 version = "2.17"; 12 13 src = fetchurl { 14 url = "mirror://sourceforge/setserial/${pname}-${version}.tar.gz"; 15 sha256 = "0jkrnn3i8gbsl48k3civjmvxyv9rbm1qjha2cf2macdc439qfi3y"; 16 }; 17 18 patches = [ ./gcc-fixes.patch ]; 19 20 nativeBuildInputs = [ 21 autoreconfHook 22 groff 23 ]; 24 25 postConfigure = '' 26 substituteInPlace Makefile \ 27 --replace-fail /usr/man/ /share/man/ \ 28 --replace-fail DESTDIR out 29 ''; 30 31 preInstall = '' 32 mkdir -p "$out/bin" "$out/share/man/man8" 33 ''; 34 35 meta = { 36 description = "Serial port configuration utility"; 37 homepage = "https://setserial.sourceforge.net"; 38 platforms = lib.platforms.linux; 39 license = lib.licenses.gpl2Only; 40 mainProgram = "setserial"; 41 maintainers = [ lib.maintainers.mmlb ]; 42 }; 43}