nixpkgs/pkgs/tools/text/diffutils/default.nix
Ludovic Courtès 9786a98261 tar, gzip, diffutils: Allow builds with newer versions of glibc.
This is a follow-up to 77fdc7bb3583606c86b2dd602b76a20a1bf6bc7c ("GNU
Coreutils: Allow builds with newer versions of glibc.").
2012-07-01 01:14:56 +02:00

29 lines
766 B
Nix

{stdenv, fetchurl, coreutils ? null}:
stdenv.mkDerivation ({
name = "diffutils-3.2";
src = fetchurl {
url = mirror://gnu/diffutils/diffutils-3.2.tar.gz;
sha256 = "1lsf0ln0h3mnm2y0mwgrfk0lyfi7bnm4r886acvdrrsvc7pypaia";
};
/* If no explicit coreutils is given, use the one from stdenv. */
buildNativeInputs = [coreutils];
meta = {
homepage = http://www.gnu.org/software/diffutils/diffutils.html;
description = "Commands for showing the differences between files (diff, cmp, etc.)";
};
}
//
{
crossAttrs =
# XXX: Temporary workaround to allow GNU/Hurd builds with newer libcs.
(stdenv.lib.optionalAttrs (stdenv.cross.config == "i586-pc-gnu") {
patches = [ ../../misc/coreutils/gets-undeclared.patch ];
});
})