forked from mirrors/nixpkgs
gnutls: fixup various problems
- disable a test that started failing due to date expiration, see #16610 - bash doesn't need adding - defining patchPhase was overriding passed postPatch and patches
This commit is contained in:
parent
86e2b0e52b
commit
17faf910b7
|
@ -11,11 +11,17 @@ assert guileBindings -> guile != null;
|
|||
stdenv.mkDerivation {
|
||||
name = "gnutls-${version}";
|
||||
|
||||
inherit src patches postPatch;
|
||||
inherit src patches;
|
||||
|
||||
outputs = [ "dev" "out" "bin" "man" "docdev" ];
|
||||
outputInfo = "docdev";
|
||||
|
||||
postPatch = ''
|
||||
sed '2iecho "name constraints tests skipped due to datefudge problems"\nexit 0' \
|
||||
-i tests/cert-tests/name-constraints
|
||||
'' + postPatch;
|
||||
|
||||
preConfigure = "patchShebangs .";
|
||||
configureFlags =
|
||||
lib.optional stdenv.isLinux "--with-default-trust-store-file=/etc/ssl/certs/ca-certificates.crt"
|
||||
++ [
|
||||
|
@ -29,7 +35,7 @@ stdenv.mkDerivation {
|
|||
# for the actual fix.
|
||||
enableParallelBuilding = !guileBindings;
|
||||
|
||||
buildInputs = [ lzo lzip nettle libtasn1 libidn p11_kit zlib gmp autogen nettools bash ]
|
||||
buildInputs = [ lzo lzip nettle libtasn1 libidn p11_kit zlib gmp autogen nettools ]
|
||||
++ lib.optional (stdenv.isFreeBSD || stdenv.isDarwin) libiconv
|
||||
++ lib.optional (tpmSupport && stdenv.isLinux) trousers
|
||||
++ [ unbound ]
|
||||
|
@ -37,10 +43,6 @@ stdenv.mkDerivation {
|
|||
|
||||
nativeBuildInputs = [ perl pkgconfig ] ++ nativeBuildInputs;
|
||||
|
||||
patchPhase = ''
|
||||
patchShebangs .
|
||||
'';
|
||||
|
||||
# XXX: Gnulib's `test-select' fails on FreeBSD:
|
||||
# http://hydra.nixos.org/build/2962084/nixlog/1/raw .
|
||||
doCheck = (!stdenv.isFreeBSD && !stdenv.isDarwin);
|
||||
|
|
Loading…
Reference in a new issue