nixpkgs/pkgs/tools/text/gnupatch/default.nix
Eelco Dolstra 2881391565 * Fix GNU patch on Darwin (and probably FreeBSD as well).
svn path=/nixpkgs/trunk/; revision=5705
2006-07-14 11:20:30 +00:00

13 lines
400 B
Nix

{stdenv, fetchurl}: stdenv.mkDerivation ({
name = "gnupatch-2.5.4";
src = fetchurl {
url = http://nix.cs.uu.nl/dist/tarballs/patch-2.5.4.tar.gz;
md5 = "ee5ae84d115f051d87fcaaef3b4ae782";
};
} //
# !!! hack
(if stdenv.system != "i686-linux" then {
patches = [./setmode.patch];
configureFlags = "dummy"; # doesn't build on Darwin unless a platform is specified
} else {}))