diff --git a/pkgs/tools/text/replace/default.nix b/pkgs/tools/text/replace/default.nix index ca96309e40ed..85e2fe2caca3 100644 --- a/pkgs/tools/text/replace/default.nix +++ b/pkgs/tools/text/replace/default.nix @@ -1,6 +1,6 @@ {stdenv, fetchurl}: -stdenv.mkDerivation { +stdenv.mkDerivation ({ name = "replace-2.24"; src = fetchurl { @@ -16,4 +16,4 @@ stdenv.mkDerivation { homepage = http://replace.richardlloyd.org.uk/; description = "A tool to replace verbatim strings"; }; -} +} // (if stdenv.system == "i686-darwin" then {patches = [./malloc.patch];} else {})) diff --git a/pkgs/tools/text/replace/malloc.patch b/pkgs/tools/text/replace/malloc.patch new file mode 100644 index 000000000000..1ee95c4bae18 --- /dev/null +++ b/pkgs/tools/text/replace/malloc.patch @@ -0,0 +1,13 @@ +diff -rc replace-2.24-orig/replace.h replace-2.24/replace.h +*** replace-2.24-orig/replace.h 2004-10-07 15:15:06.000000000 +0200 +--- replace-2.24/replace.h 2008-02-21 14:57:47.000000000 +0100 +*************** +*** 11,17 **** + #include + #include + #include +- #include + #include + #include + #include +--- 11,16 ----