From 013d8e5e3aef71903105ff8b699c9a9fbe03ff85 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 12 Feb 2009 22:03:32 +0000 Subject: [PATCH] * Fix building on Darwin. svn path=/nixpkgs/branches/stdenv-updates/; revision=14061 --- pkgs/tools/text/gnugrep/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/tools/text/gnugrep/default.nix b/pkgs/tools/text/gnugrep/default.nix index 67099a01e90f..4f44d61108ed 100644 --- a/pkgs/tools/text/gnugrep/default.nix +++ b/pkgs/tools/text/gnugrep/default.nix @@ -1,6 +1,7 @@ {stdenv, fetchurl, pcre}: let version = "2.5.4"; in + stdenv.mkDerivation { name = "gnugrep-${version}"; @@ -13,6 +14,12 @@ stdenv.mkDerivation { doCheck = true; + # On Mac OS X, force use of mkdir -p, since Grep's fallback + # (./install-sh) is broken. + preConfigure = '' + export MKDIR_P="mkdir -p" + ''; + meta = { homepage = http://www.gnu.org/software/grep/; description = "GNU implementation of the Unix grep command";