diff --git a/pkgs/gnugrep/gnugrep-build.sh b/pkgs/gnugrep/gnugrep-build.sh new file mode 100755 index 000000000000..9f2607b7d016 --- /dev/null +++ b/pkgs/gnugrep/gnugrep-build.sh @@ -0,0 +1,10 @@ +#! /bin/sh + +envpkgs="$pcre" +. $stdenv/setup || exit 1 + +tar xvfj $src || exit 1 +cd grep-* || exit 1 +./configure --prefix=$out || exit 1 +make || exit 1 +make install || exit 1 diff --git a/pkgs/gnugrep/gnugrep.fix b/pkgs/gnugrep/gnugrep.fix new file mode 100644 index 000000000000..2b7de64e0590 --- /dev/null +++ b/pkgs/gnugrep/gnugrep.fix @@ -0,0 +1,14 @@ +Package( + [ ("name", "gnugrep-2.5.1") + + , ("build", Relative("gnugrep/gnugrep-build.sh")) + + , ("src", Call(IncludeFix("fetchurl/fetchurl.fix"), + [ ("url", "ftp://ftp.nluug.nl/pub/gnu/grep/grep-2.5.1.tar.bz2") + , ("md5", "ddd99e2d5d4f4611357e31e97f080cf2") + ])) + + , ("stdenv", IncludeFix("stdenv-linux/stdenv-nativetools.fix")) + , ("pcre", IncludeFix("pcre/pcre.fix")) + ] +) diff --git a/pkgs/pcre/pcre-build.sh b/pkgs/pcre/pcre-build.sh new file mode 100755 index 000000000000..dea883667fcc --- /dev/null +++ b/pkgs/pcre/pcre-build.sh @@ -0,0 +1,9 @@ +#! /bin/sh + +. $stdenv/setup || exit 1 + +tar xvfj $src || exit 1 +cd pcre-* || exit 1 +./configure --prefix=$out || exit 1 +make || exit 1 +make install || exit 1 diff --git a/pkgs/pcre/pcre.fix b/pkgs/pcre/pcre.fix new file mode 100644 index 000000000000..833151351d07 --- /dev/null +++ b/pkgs/pcre/pcre.fix @@ -0,0 +1,13 @@ +Package( + [ ("name", "pcre-4.3") + + , ("build", Relative("pcre/pcre-build.sh")) + + , ("src", Call(IncludeFix("fetchurl/fetchurl.fix"), + [ ("url", "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-4.3.tar.bz2") + , ("md5", "7bc7d5b590a41e6f9ede30f272002a02") + ])) + + , ("stdenv", IncludeFix("stdenv-linux/stdenv-nativetools.fix")) + ] +) diff --git a/pkgs/stdenv-linux/stdenv-generic.fix b/pkgs/stdenv-linux/stdenv-generic.fix index d212ed1a0523..113ad58ba1e2 100644 --- a/pkgs/stdenv-linux/stdenv-generic.fix +++ b/pkgs/stdenv-linux/stdenv-generic.fix @@ -14,6 +14,7 @@ Function(["nativeTools"], [], [ IncludeFix("coreutils/coreutils.fix") , IncludeFix("gnused/gnused.fix") + , IncludeFix("gnugrep/gnugrep.fix") , IncludeFix("gnutar/gnutar.fix") , IncludeFix("gzip/gzip.fix") ]))