summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/text/gnupatch
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2010-01-06 13:50:51 +0000
committerLudovic Courtès <ludo@gnu.org>2010-01-06 13:50:51 +0000
commit9fefb472c59959a06d1e3d6017ba4ca34cef224b (patch)
treea1e693084cd8695fef14dfc8036a6c4d2dfee3a3 /pkgs/tools/text/gnupatch
parenteea396e744bbca432287add7843ad06df40c0fb9 (diff)
GNU Patch 2.6.1.
svn path=/nixpkgs/branches/stdenv-updates/; revision=19260
Diffstat (limited to 'pkgs/tools/text/gnupatch')
-rw-r--r--pkgs/tools/text/gnupatch/default.nix38
1 files changed, 29 insertions, 9 deletions
diff --git a/pkgs/tools/text/gnupatch/default.nix b/pkgs/tools/text/gnupatch/default.nix
index 26e0b906e523..6d89b119f47e 100644
--- a/pkgs/tools/text/gnupatch/default.nix
+++ b/pkgs/tools/text/gnupatch/default.nix
@@ -1,15 +1,35 @@
{stdenv, fetchurl}:
-stdenv.mkDerivation ( {
- name = "gnupatch-2.5.4";
+stdenv.mkDerivation rec {
+ name = "patch-2.6.1";
+
src = fetchurl {
- url = mirror://gnu/patch/patch-2.5.4.tar.gz;
- md5 = "ee5ae84d115f051d87fcaaef3b4ae782";
+ url = "mirror://gnu/patch/${name}.tar.gz";
+ sha256 = "1fc1jyq80nswkf492fiqdbl2bhvlw2wb44ghqlfd3zngx4qkfmni";
};
- # Hack around ancient configure script: doesn't build on many newer
- # platforms unless a platform is specified.
- configureFlags = "dummy";
+ doCheck = true;
+
+ meta = {
+ description = "GNU Patch, a program to apply differences to files";
+
+ longDescription =
+ '' GNU Patch takes a patch file containing a difference listing
+ produced by the diff program and applies those differences to one or
+ more original files, producing patched versions.
+ '';
+
+ homepage = http://savannah.gnu.org/projects/patch;
+
+ license = "GPLv3+";
+
+ maintainers = [ stdenv.lib.maintainers.ludo ];
+ platforms = stdenv.lib.platforms.all;
+ };
+}
- patches = if stdenv.isDarwin then [./setmode.patch] else [];
-} // (if stdenv.isDarwin then { ac_cv_exeext = "" ; } else {} ) )
+# XXX: These Darwin hacks were useful with 2.5.4; assuming they're no
+# longer useful.
+#
+# patches = if stdenv.isDarwin then [./setmode.patch] else [];
+#} // (if stdenv.isDarwin then { ac_cv_exeext = "" ; } else {} ) )