patch: Update to 2.7.1

Also disable the tests on FreeBSD.

http://hydra.nixos.org/build/3070072
This commit is contained in:
Eelco Dolstra 2012-10-16 15:05:39 -04:00
parent 0008138201
commit c0ae221bb0

View file

@ -1,11 +1,11 @@
{ stdenv, fetchurl, ed }:
stdenv.mkDerivation rec {
name = "patch-2.7";
name = "patch-2.7.1";
src = fetchurl {
url = "mirror://gnu/patch/${name}.tar.gz";
sha256 = "0j10lq37ywcc4qiakan6wpm00abfrnnccq3ags129ad0z9b9zhjr";
sha256 = "1m9r83b5c154xnxbvgjg4lfff58xjapanj6dmmivqx1liik2hpy0";
};
buildInputs = stdenv.lib.optional doCheck ed;
@ -14,7 +14,8 @@ stdenv.mkDerivation rec {
configureFlags = [ "ac_cv_func_strnlen_working=yes" ];
};
doCheck = true;
# Tests fail on FreeBSD due to a Bashism in the tests.
doCheck = !stdenv.isFreeBSD;
meta = {
description = "GNU Patch, a program to apply differences to files";