nixpkgs/pkgs/tools/text/gnugrep/default.nix
Eelco Dolstra bda5d7d471 * Hack around a weird build problem on Darwin.
svn path=/nixpkgs/branches/stdenv-updates-merge/; revision=10804
2008-02-21 14:47:59 +00:00

21 lines
No EOL
525 B
Nix

{stdenv, fetchurl, pcre}:
stdenv.mkDerivation ({
name = "gnugrep-2.5.3";
src = fetchurl {
url = http://nix.cs.uu.nl/dist/tarballs/grep-2.5.3-with-info.tar.bz2;
sha256 = "0rg9dipksqzbg8v1xalib1n3xkkycc5r1l2gb9cxy1cz3cjip5l8";
};
buildInputs = [pcre];
meta = {
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 {}))