mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
dc71d2e6d3
svn path=/nixpkgs/branches/stdenv-updates/; revision=24160
40 lines
910 B
Nix
40 lines
910 B
Nix
{stdenv, fetchurl, pcre}:
|
|
|
|
let version = "2.7"; in
|
|
|
|
stdenv.mkDerivation {
|
|
name = "gnugrep-${version}";
|
|
|
|
patches = [ ./malloc.patch ];
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnu/grep/grep-${version}.tar.gz";
|
|
sha256 = "1b8vksfd1ngharac3ygaqim3lrf0yqap992sg0vfm7572l88655d";
|
|
};
|
|
|
|
buildInputs = [pcre];
|
|
|
|
doCheck = if stdenv.isDarwin then false else 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";
|
|
|
|
longDescription = ''
|
|
The grep command searches one or more input files for lines
|
|
containing a match to a specified pattern. By default, grep
|
|
prints the matching lines.
|
|
'';
|
|
|
|
license = "GPLv3+";
|
|
};
|
|
|
|
passthru = {inherit pcre;};
|
|
}
|