mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
gnutls-3.3: make it build again
At least without tests. We only have two packages using it ATM.
This commit is contained in:
parent
5915716f13
commit
46134cbca5
@ -10,7 +10,7 @@ assert guileBindings -> guile != null;
|
||||
let
|
||||
# XXX: Gnulib's `test-select' fails on FreeBSD:
|
||||
# http://hydra.nixos.org/build/2962084/nixlog/1/raw .
|
||||
doCheck = (!stdenv.isFreeBSD && !stdenv.isDarwin);
|
||||
doCheck = !stdenv.isFreeBSD && !stdenv.isDarwin && lib.versionAtLeast version "3.4";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "gnutls-${version}";
|
||||
@ -20,7 +20,7 @@ stdenv.mkDerivation {
|
||||
outputs = [ "dev" "out" "bin" "man" "docdev" ];
|
||||
outputInfo = "docdev";
|
||||
|
||||
postPatch = ''
|
||||
postPatch = lib.optionalString (lib.versionAtLeast version "3.4") ''
|
||||
sed '2iecho "name constraints tests skipped due to datefudge problems"\nexit 0' \
|
||||
-i tests/cert-tests/name-constraints
|
||||
'' + postPatch;
|
||||
|
Loading…
Reference in New Issue
Block a user