From 9e2fb3fe06c8970a9deb057cccb4bbdf687dca2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 10 Feb 2009 22:46:00 +0000 Subject: [PATCH] GNU grep 2.5.4 (untested). svn path=/nixpkgs/branches/stdenv-updates/; revision=14024 --- pkgs/tools/text/gnugrep/default.nix | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/pkgs/tools/text/gnugrep/default.nix b/pkgs/tools/text/gnugrep/default.nix index 5e1efba7c00..67099a01e90 100644 --- a/pkgs/tools/text/gnugrep/default.nix +++ b/pkgs/tools/text/gnugrep/default.nix @@ -1,22 +1,29 @@ {stdenv, fetchurl, pcre}: +let version = "2.5.4"; in stdenv.mkDerivation { - name = "gnugrep-2.5.3"; + name = "gnugrep-${version}"; src = fetchurl { - url = http://nixos.org/tarballs/grep-2.5.3-with-info.tar.bz2; - sha256 = "0rg9dipksqzbg8v1xalib1n3xkkycc5r1l2gb9cxy1cz3cjip5l8"; + url = "mirror://gnu/grep/grep-${version}.tar.bz2"; + sha256 = "0800lj1ywf43x5jnjyga56araak0f601sd9k5q1vv3s5057cdgha"; }; buildInputs = [pcre]; - preBuild = '' - makeFlagsArray=(mkdir_p="mkdir -p") - ''; - + doCheck = true; + 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;};