summary refs log tree commit diff
path: root/pkgs/tools/text/gnupatch
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2004-02-13 14:42:28 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2004-02-13 14:42:28 +0000
commitd6a58594d2ed549d24c6387ee2d9439f396257c1 (patch)
tree6f97c681cabf085f6c28d29b17f831cbb9cbc194 /pkgs/tools/text/gnupatch
parent191a465665ae1bbed18aed0431a58ad53876d3e2 (diff)
parente6db9b1caa9acc6ebd1a1e219ec084f2209ad68f (diff)
downloadnixpkgs-d6a58594d2ed549d24c6387ee2d9439f396257c1.tar
nixpkgs-d6a58594d2ed549d24c6387ee2d9439f396257c1.tar.gz
nixpkgs-d6a58594d2ed549d24c6387ee2d9439f396257c1.tar.bz2
nixpkgs-d6a58594d2ed549d24c6387ee2d9439f396257c1.tar.lz
nixpkgs-d6a58594d2ed549d24c6387ee2d9439f396257c1.tar.xz
nixpkgs-d6a58594d2ed549d24c6387ee2d9439f396257c1.tar.zst
nixpkgs-d6a58594d2ed549d24c6387ee2d9439f396257c1.zip
* User-Mode Linux and GNU Patch.
svn path=/nixpkgs/trunk/; revision=779
Diffstat (limited to 'pkgs/tools/text/gnupatch')
-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 00000000000..0b7210beff4
--- /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 00000000000..ddc24e55aee
--- /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;
+}