From 34dfe1866040bf14d86600afd08658d28adc931a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 11 Sep 2003 20:17:17 +0000 Subject: [PATCH] * GNU Patch. svn path=/nixpkgs/trunk/; revision=388 --- pkgs/gnupatch/gnupatch-build.sh | 9 +++++++++ pkgs/gnupatch/gnupatch.fix | 13 +++++++++++++ 2 files changed, 22 insertions(+) create mode 100755 pkgs/gnupatch/gnupatch-build.sh create mode 100644 pkgs/gnupatch/gnupatch.fix diff --git a/pkgs/gnupatch/gnupatch-build.sh b/pkgs/gnupatch/gnupatch-build.sh new file mode 100755 index 000000000000..0b7210beff44 --- /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 000000000000..c2a207d614e8 --- /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")) + ] +)