gnutls: fix tests after 79bd4ad57 (PR #61179)

It's one of the places that would reach out to /etc/ otherwise,
so I expect we have to pay this price to get the effect.
Hopefully there won't be too many places to patch.
This commit is contained in:
Vladimír Čunát 2019-05-19 14:45:52 +02:00
parent 96a604320a
commit 347cd8add7
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -1,6 +1,6 @@
{ config, lib, stdenv, fetchurl, zlib, lzo, libtasn1, nettle, pkgconfig, lzip { config, lib, stdenv, fetchurl, zlib, lzo, libtasn1, nettle, pkgconfig, lzip
, perl, gmp, autoconf, autogen, automake, libidn, p11-kit, libiconv , perl, gmp, autoconf, autogen, automake, libidn, p11-kit, libiconv
, unbound, dns-root-data, gettext , unbound, dns-root-data, gettext, cacert
, guileBindings ? config.gnutls.guile or false, guile , guileBindings ? config.gnutls.guile or false, guile
, tpmSupport ? false, trousers, which, nettools, libunistring , tpmSupport ? false, trousers, which, nettools, libunistring
, withSecurity ? false, Security # darwin Security.framework , withSecurity ? false, Security # darwin Security.framework
@ -72,6 +72,9 @@ stdenv.mkDerivation {
propagatedBuildInputs = [ nettle ]; propagatedBuildInputs = [ nettle ];
inherit doCheck; inherit doCheck;
# stdenv's `NIX_SSL_CERT_FILE=/no-cert-file.crt` broke tests with:
# Error setting the x509 trust file: Error while reading file.
checkInputs = [ cacert ];
# Fixup broken libtool and pkgconfig files # Fixup broken libtool and pkgconfig files
preFixup = lib.optionalString (!isDarwin) '' preFixup = lib.optionalString (!isDarwin) ''