From 9fefb472c59959a06d1e3d6017ba4ca34cef224b Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Wed, 6 Jan 2010 13:50:51 +0000 Subject: GNU Patch 2.6.1. svn path=/nixpkgs/branches/stdenv-updates/; revision=19260 --- pkgs/tools/text/gnupatch/default.nix | 38 +++++++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 9 deletions(-) (limited to 'pkgs/tools') 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 {} ) ) -- cgit 1.4.1