2006-07-14 13:20:30 +02:00
|
|
|
{stdenv, fetchurl}: stdenv.mkDerivation ({
|
2004-02-13 15:42:28 +01:00
|
|
|
name = "gnupatch-2.5.4";
|
|
|
|
src = fetchurl {
|
2005-08-22 10:39:27 +02:00
|
|
|
url = http://nix.cs.uu.nl/dist/tarballs/patch-2.5.4.tar.gz;
|
2004-02-13 15:42:28 +01:00
|
|
|
md5 = "ee5ae84d115f051d87fcaaef3b4ae782";
|
|
|
|
};
|
2006-07-14 13:20:30 +02:00
|
|
|
} //
|
|
|
|
# !!! hack
|
|
|
|
(if stdenv.system != "i686-linux" then {
|
|
|
|
patches = [./setmode.patch];
|
|
|
|
configureFlags = "dummy"; # doesn't build on Darwin unless a platform is specified
|
2006-10-20 00:31:08 +02:00
|
|
|
} else {})
|
|
|
|
//
|
|
|
|
# !!! hack
|
|
|
|
(if stdenv ? isDietLibC then {
|
|
|
|
# !!! pass this on all platforms
|
|
|
|
configureFlags = "dummy"; # doesn't build unless a platform is specified
|
|
|
|
} else {})
|
|
|
|
)
|