summary refs log tree commit diff
path: root/pkgs/tools/text
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/text')
-rwxr-xr-xpkgs/tools/text/gnupatch/builder.sh9
-rw-r--r--pkgs/tools/text/gnupatch/default.nix10
2 files changed, 19 insertions, 0 deletions
diff --git a/pkgs/tools/text/gnupatch/builder.sh b/pkgs/tools/text/gnupatch/builder.sh
new file mode 100755
index 000000000000..0b7210beff44
--- /dev/null
+++ b/pkgs/tools/text/gnupatch/builder.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/tools/text/gnupatch/default.nix b/pkgs/tools/text/gnupatch/default.nix
new file mode 100644
index 000000000000..ddc24e55aee1
--- /dev/null
+++ b/pkgs/tools/text/gnupatch/default.nix
@@ -0,0 +1,10 @@
+{stdenv, fetchurl}: derivation {
+  name = "gnupatch-2.5.4";
+  system = stdenv.system;
+  builder = ./builder.sh;
+  src = fetchurl {
+    url = ftp://ftp.nluug.nl/pub/gnu/patch/patch-2.5.4.tar.gz;
+    md5 = "ee5ae84d115f051d87fcaaef3b4ae782";
+  };
+  stdenv = stdenv;
+}