nixpkgs/pkgs/tools/misc/coreutils/default.nix
Eelco Dolstra 6ff020ad3a * Build coreutils on dietlibc.
svn path=/nixpkgs/trunk/; revision=6765
2006-10-18 15:16:53 +00:00

13 lines
326 B
Nix

{stdenv, fetchurl}:
stdenv.mkDerivation ({
name = "coreutils-5.97";
src = fetchurl {
url = http://nix.cs.uu.nl/dist/tarballs/coreutils-5.97.tar.gz;
md5 = "bdec4b75c76ac9bf51b6dd1747d3b06e";
};
} // (if stdenv ? isDietLibC then {
NIX_CFLAGS_COMPILE="-D_BSD_SOURCE=1";
patches = [./uclibc.patch];
} else {}))