Adding setserial

svn path=/nixpkgs/trunk/; revision=15898
This commit is contained in:
Michael Raskin 2009-06-09 04:22:46 +00:00
parent c8ba912b42
commit 1b5fa6e1ee
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,34 @@
a :
let
fetchurl = a.fetchurl;
version = a.lib.attrByPath ["version"] "2.17" a;
buildInputs = with a; [
groff
];
in
rec {
src = fetchurl {
url = "ftp://ftp.mcc.ac.uk/pub/linux/sources/sbin/setserial-${version}.tar.gz";
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";
};
}

View File

@ -1282,6 +1282,10 @@ let
inherit fetchurl stdenv emacs eieio; inherit fetchurl stdenv emacs eieio;
}; };
setserial = builderDefsPackage (import ../tools/system/setserial) {
inherit groff;
};
sharutils = selectVersion ../tools/archivers/sharutils "4.6.3" { sharutils = selectVersion ../tools/archivers/sharutils "4.6.3" {
inherit fetchurl stdenv; inherit fetchurl stdenv;
}; };