about summary refs log tree commit diff
path: root/pkgs/tools/text
diff options
context:
space:
mode:
authorArmijn Hemel <armijn@gpl-violations.org>2005-12-27 10:39:20 +0000
committerArmijn Hemel <armijn@gpl-violations.org>2005-12-27 10:39:20 +0000
commit796636040a9e38e2a31dd8fe431dd6d1b3b8f988 (patch)
treea79db53aad1cac762afd9619066fe37cda914345 /pkgs/tools/text
parentabcfd1bce55aeba03ca6844d6956618afe394460 (diff)
downloadnixlib-796636040a9e38e2a31dd8fe431dd6d1b3b8f988.tar
nixlib-796636040a9e38e2a31dd8fe431dd6d1b3b8f988.tar.gz
nixlib-796636040a9e38e2a31dd8fe431dd6d1b3b8f988.tar.bz2
nixlib-796636040a9e38e2a31dd8fe431dd6d1b3b8f988.tar.lz
nixlib-796636040a9e38e2a31dd8fe431dd6d1b3b8f988.tar.xz
nixlib-796636040a9e38e2a31dd8fe431dd6d1b3b8f988.tar.zst
nixlib-796636040a9e38e2a31dd8fe431dd6d1b3b8f988.zip
static diffutils for initial stdenv
svn path=/nixpkgs/trunk/; revision=4445
Diffstat (limited to 'pkgs/tools/text')
-rw-r--r--pkgs/tools/text/diffutils-diet/builder.sh3
-rw-r--r--pkgs/tools/text/diffutils-diet/default.nix13
2 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/tools/text/diffutils-diet/builder.sh b/pkgs/tools/text/diffutils-diet/builder.sh
new file mode 100644
index 000000000000..6c508ed5614c
--- /dev/null
+++ b/pkgs/tools/text/diffutils-diet/builder.sh
@@ -0,0 +1,3 @@
+source $stdenv/setup
+if test -n "$coreutils"; then PATH=$coreutils/bin:$PATH; fi
+genericBuild
\ No newline at end of file
diff --git a/pkgs/tools/text/diffutils-diet/default.nix b/pkgs/tools/text/diffutils-diet/default.nix
new file mode 100644
index 000000000000..17c1cdaf41e0
--- /dev/null
+++ b/pkgs/tools/text/diffutils-diet/default.nix
@@ -0,0 +1,13 @@
+{stdenv, fetchurl, coreutils ? null, dietgcc}:
+
+stdenv.mkDerivation {
+  name = "diffutils-2.8.1";
+  builder = ./builder.sh;
+  src = fetchurl {
+    url = http://nix.cs.uu.nl/dist/tarballs/diffutils-2.8.1.tar.gz;
+    md5 = "71f9c5ae19b60608f6c7f162da86a428";
+  };
+  /* If no explicit coreutils is given, use the one from stdenv. */
+  inherit coreutils;
+  NIX_GCC=dietgcc;
+}