mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 04:31:52 +00:00
* Prevent a retained dependency on coreutils from stdenv.
svn path=/nixpkgs/trunk/; revision=1435
This commit is contained in:
parent
d97dd79895
commit
6dc5ad8a2d
3
pkgs/tools/text/diffutils/builder.sh
Normal file
3
pkgs/tools/text/diffutils/builder.sh
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
. $stdenv/setup
|
||||||
|
if test -n "$coreutils"; then PATH=$coreutils/bin:$PATH; fi
|
||||||
|
genericBuild
|
|
@ -1,9 +1,12 @@
|
||||||
{stdenv, fetchurl}:
|
{stdenv, fetchurl, coreutils ? null}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "diffutils-2.8.1";
|
name = "diffutils-2.8.1";
|
||||||
|
builder = ./builder.sh;
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = ftp://ftp.nluug.nl/pub/gnu/diffutils/diffutils-2.8.1.tar.gz;
|
url = ftp://ftp.nluug.nl/pub/gnu/diffutils/diffutils-2.8.1.tar.gz;
|
||||||
md5 = "71f9c5ae19b60608f6c7f162da86a428";
|
md5 = "71f9c5ae19b60608f6c7f162da86a428";
|
||||||
};
|
};
|
||||||
|
/* If no explicit coreutils is given, use the one from stdenv. */
|
||||||
|
inherit coreutils;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue