nixpkgs/pkgs/tools/text/gnupatch/default.nix
Rob Vermaas c100551503 * darwin patch to make sure gnupatch doesn't get dSYM extension
svn path=/nixpkgs/trunk/; revision=16447
2009-07-23 22:07:45 +00:00

15 lines
466 B
Nix

{stdenv, fetchurl}:
stdenv.mkDerivation ( {
name = "gnupatch-2.5.4";
src = fetchurl {
url = mirror://gnu/patch/patch-2.5.4.tar.gz;
md5 = "ee5ae84d115f051d87fcaaef3b4ae782";
};
# Hack around ancient configure script: doesn't build on many newer
# platforms unless a platform is specified.
configureFlags = "dummy";
patches = if stdenv.isDarwin then [./setmode.patch] else [];
} // (if stdenv.isDarwin then { ac_cv_exeext = "" ; } else {} ) )