From bda5d7d4715229c48813b5a19f1adc0afd1391d5 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 21 Feb 2008 14:47:59 +0000 Subject: * Hack around a weird build problem on Darwin. svn path=/nixpkgs/branches/stdenv-updates-merge/; revision=10804 --- pkgs/tools/text/gnugrep/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/text/gnugrep/default.nix b/pkgs/tools/text/gnugrep/default.nix index 9b36dad6cfe26..b0a95beb56ca0 100644 --- a/pkgs/tools/text/gnugrep/default.nix +++ b/pkgs/tools/text/gnugrep/default.nix @@ -1,6 +1,6 @@ {stdenv, fetchurl, pcre}: -stdenv.mkDerivation { +stdenv.mkDerivation ({ name = "gnugrep-2.5.3"; src = fetchurl { @@ -14,4 +14,8 @@ stdenv.mkDerivation { homepage = http://www.gnu.org/software/grep/; description = "GNU implementation of the Unix grep command"; }; -} +} // (if stdenv.system == "i686-darwin" then { + preBuild = '' + makeFlagsArray=(mkdir_p="mkdir -p") + ''; +} else {})) \ No newline at end of file -- cgit 1.4.1