@@ -10,7 +10,7 @@ assert guileBindings -> guile != null;
11 # XXX: Gnulib's `test-select' fails on FreeBSD:
11 # XXX: Gnulib's `test-select' fails on FreeBSD:
12 # http://hydra.nixos.org/build/2962084/nixlog/1/raw .
12 # http://hydra.nixos.org/build/2962084/nixlog/1/raw .
13− doCheck = (!stdenv.isFreeBSD && !stdenv.isDarwin);
13+ doCheck = !stdenv.isFreeBSD && !stdenv.isDarwin && lib.versionAtLeast version "3.4";
15stdenv.mkDerivation {
15stdenv.mkDerivation {
16 name = "gnutls-${version}";
16 name = "gnutls-${version}";
@@ -20,7 +20,7 @@ stdenv.mkDerivation {
20 outputs = [ "dev" "out" "bin" "man" "docdev" ];
20 outputs = [ "dev" "out" "bin" "man" "docdev" ];
21 outputInfo = "docdev";
21 outputInfo = "docdev";
23− postPatch = ''
23+ postPatch = lib.optionalString (lib.versionAtLeast version "3.4") ''
24 sed '2iecho "name constraints tests skipped due to datefudge problems"\nexit 0' \
24 sed '2iecho "name constraints tests skipped due to datefudge problems"\nexit 0' \
25 -i tests/cert-tests/name-constraints
25 -i tests/cert-tests/name-constraints
26 '' + postPatch;
26 '' + postPatch;