diff --git a/pkgs/gnupatch/gnupatch-build.sh b/pkgs/gnupatch/gnupatch-build.sh new file mode 100755 index 00000000000..0b7210beff4 --- /dev/null +++ b/pkgs/gnupatch/gnupatch-build.sh @@ -0,0 +1,9 @@ +#! /bin/sh + +. $stdenv/setup || exit 1 + +tar xvfz $src || exit 1 +cd patch-* || exit 1 +./configure --prefix=$out || exit 1 +make || exit 1 +make install || exit 1 diff --git a/pkgs/gnupatch/gnupatch.fix b/pkgs/gnupatch/gnupatch.fix new file mode 100644 index 00000000000..c2a207d614e --- /dev/null +++ b/pkgs/gnupatch/gnupatch.fix @@ -0,0 +1,13 @@ +Package( + [ ("name", "gnupatch-2.5.4") + + , ("build", Relative("gnupatch/gnupatch-build.sh")) + + , ("src", Call(IncludeFix("fetchurl/fetchurl.fix"), + [ ("url", "ftp://ftp.nluug.nl/pub/gnu/patch/patch-2.5.4.tar.gz") + , ("md5", "ee5ae84d115f051d87fcaaef3b4ae782") + ])) + + , ("stdenv", IncludeFix("stdenv/stdenv.fix")) + ] +)