2009-06-09 04:22:46 +00:00
|
|
|
a :
|
|
|
|
let
|
|
|
|
fetchurl = a.fetchurl;
|
|
|
|
|
|
|
|
version = a.lib.attrByPath ["version"] "2.17" a;
|
|
|
|
buildInputs = with a; [
|
|
|
|
groff
|
|
|
|
];
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = fetchurl {
|
2009-06-11 05:41:30 +00:00
|
|
|
url = "mirror://sourceforge/setserial/setserial-${version}.tar.gz";
|
2009-06-09 04:22:46 +00:00
|
|
|
sha256 = "0jkrnn3i8gbsl48k3civjmvxyv9rbm1qjha2cf2macdc439qfi3y";
|
|
|
|
};
|
|
|
|
|
|
|
|
inherit buildInputs;
|
|
|
|
configureFlags = [];
|
|
|
|
|
|
|
|
installFlags = "DESTDIR=$out";
|
|
|
|
|
|
|
|
/* doConfigure should be removed if not needed */
|
|
|
|
phaseNames = ["doConfigure" "patchPath" "doMakeInstall"];
|
|
|
|
|
|
|
|
patchPath = a.fullDepEntry (''
|
|
|
|
sed -e s@/usr/man/@/share/man/@ -i Makefile
|
|
|
|
'') ["minInit" "doUnpack" "doConfigure"];
|
|
|
|
|
|
|
|
neededDirs = ["$out/bin" "$out/share/man/man8"];
|
|
|
|
|
|
|
|
name = "setserial-" + version;
|
|
|
|
meta = {
|
|
|
|
description = "Serial port configuration utility";
|
|
|
|
};
|
|
|
|
}
|