summary refs log tree commit diff
path: root/pkgs/tools/system
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/system')
-rwxr-xr-xpkgs/tools/system/which/builder.sh9
-rwxr-xr-xpkgs/tools/system/which/builder.sh~9
-rw-r--r--pkgs/tools/system/which/default.nix13
3 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/system/which/builder.sh b/pkgs/tools/system/which/builder.sh
new file mode 100755
index 0000000000000..e6ddd3dfa7380
--- /dev/null
+++ b/pkgs/tools/system/which/builder.sh
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+. $stdenv/setup || exit 1
+
+tar xvfz $src || exit 1
+cd which-* || exit 1
+./configure --prefix=$out || exit 1
+make || exit 1
+make install || exit 1
diff --git a/pkgs/tools/system/which/builder.sh~ b/pkgs/tools/system/which/builder.sh~
new file mode 100755
index 0000000000000..1266353279257
--- /dev/null
+++ b/pkgs/tools/system/which/builder.sh~
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+. $stdenv/setup || exit 1
+
+tar xvfz $src || exit 1
+cd sed-* || exit 1
+./configure --prefix=$out || exit 1
+make || exit 1
+make install || exit 1
diff --git a/pkgs/tools/system/which/default.nix b/pkgs/tools/system/which/default.nix
new file mode 100644
index 0000000000000..8d85e4120fc03
--- /dev/null
+++ b/pkgs/tools/system/which/default.nix
@@ -0,0 +1,13 @@
+{stdenv, fetchurl}: derivation {
+  name = "which-2.16";
+  system = stdenv.system;
+  builder = ./builder.sh;
+  src = fetchurl {
+    url = http://ftp.gnu.org/gnu/which/which-2.16.tar.gz;
+    md5 = "830b83af48347a9a3520f561e47cbc9b";
+  };
+  stdenv = stdenv;
+}
+
+
+