summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/text/gnupatch
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2010-01-14 10:09:45 +0000
committerLudovic Courtès <ludo@gnu.org>2010-01-14 10:09:45 +0000
commit7c8062b8a2f429eae675dbca103cf554f551c6e0 (patch)
tree92e048793f2ba37cf6557e65f7837cba1edf88d4 /pkgs/tools/text/gnupatch
parent951ec3ce51399f259908370a3704fbf750fede28 (diff)
GNU Patch: Try fix for Darwin.
svn path=/nixpkgs/branches/stdenv-updates/; revision=19430
Diffstat (limited to 'pkgs/tools/text/gnupatch')
-rw-r--r--pkgs/tools/text/gnupatch/default.nix15
1 files changed, 11 insertions, 4 deletions
diff --git a/pkgs/tools/text/gnupatch/default.nix b/pkgs/tools/text/gnupatch/default.nix
index c73077623530..5dc11bdc470a 100644
--- a/pkgs/tools/text/gnupatch/default.nix
+++ b/pkgs/tools/text/gnupatch/default.nix
@@ -3,10 +3,17 @@
stdenv.mkDerivation rec {
name = "patch-2.6.1";
- src = fetchurl {
- url = "mirror://gnu/patch/${name}.tar.gz";
- sha256 = "1fc1jyq80nswkf492fiqdbl2bhvlw2wb44ghqlfd3zngx4qkfmni";
- };
+ src =
+ if stdenv.isDarwin
+ then fetchurl {
+ # Temporary fix for
+ # http://lists.gnu.org/archive/html/bug-patch/2010-01/msg00004.html .
+ url = "ftp://alpha.gnu.org/patch/patch-2.6.1-2-g2c4e3ec.tar.gz";
+ sha256 = "1rspyzrik5cnav3m2fxr8146bsq4mc0yw4x0r8nkl2x7i052yr2c";
+ } else fetchurl {
+ url = "mirror://gnu/patch/${name}.tar.gz";
+ sha256 = "1fc1jyq80nswkf492fiqdbl2bhvlw2wb44ghqlfd3zngx4qkfmni";
+ };
buildInputs = (stdenv.lib.optional doCheck ed);