about summary refs log tree commit diff
path: root/pkgs/tools/system
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2009-06-09 04:22:46 +0000
committerMichael Raskin <7c6f434c@mail.ru>2009-06-09 04:22:46 +0000
commit1b5fa6e1ee2524df11837b1b5bab7c64a11a69a2 (patch)
treea84fefbcacaa39b4084b0ee47b17f8d034d90fbe /pkgs/tools/system
parentc8ba912b42364a0a2d5a553d355e630fa1ec671a (diff)
downloadnixlib-1b5fa6e1ee2524df11837b1b5bab7c64a11a69a2.tar
nixlib-1b5fa6e1ee2524df11837b1b5bab7c64a11a69a2.tar.gz
nixlib-1b5fa6e1ee2524df11837b1b5bab7c64a11a69a2.tar.bz2
nixlib-1b5fa6e1ee2524df11837b1b5bab7c64a11a69a2.tar.lz
nixlib-1b5fa6e1ee2524df11837b1b5bab7c64a11a69a2.tar.xz
nixlib-1b5fa6e1ee2524df11837b1b5bab7c64a11a69a2.tar.zst
nixlib-1b5fa6e1ee2524df11837b1b5bab7c64a11a69a2.zip
Adding setserial
svn path=/nixpkgs/trunk/; revision=15898
Diffstat (limited to 'pkgs/tools/system')
-rw-r--r--pkgs/tools/system/setserial/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/tools/system/setserial/default.nix b/pkgs/tools/system/setserial/default.nix
new file mode 100644
index 000000000000..55f2e238fe62
--- /dev/null
+++ b/pkgs/tools/system/setserial/default.nix
@@ -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";
+  };
+}