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; +}