gnutls: respect NIX_SSL_CERT_FILE, same as our openssl

The patch should work fine, regardless of the Darwin patch being applied.
This commit is contained in:
Vladimír Čunát
2019-04-22 16:43:45 +02:00
committed by Daiderd Jordan
parent 33e7d721b6
commit 39c2b6452c
2 changed files with 22 additions and 2 deletions
@@ -30,8 +30,9 @@ stdenv.mkDerivation {
outputs = [ "bin" "dev" "out" "man" "devdoc" ];
outputInfo = "devdoc";
# Disable native add_system_trust.
patches = lib.optional (isDarwin && !withSecurity) ./no-security-framework.patch;
patches = [ ./nix-ssl-cert-file.patch ]
# Disable native add_system_trust.
++ lib.optional (isDarwin && !withSecurity) ./no-security-framework.patch;
# Skip some tests:
# - pkgconfig: building against the result won't work before installing (3.5.11)