cacert: add hook that sets SSL_CERT_FILE

Fixes #32981
This commit is contained in:
Daiderd Jordan 2017-12-23 15:13:29 +01:00
parent afac8c61e9
commit bfccf8e42c
No known key found for this signature in database
GPG Key ID: D02435D05B810C96
2 changed files with 8 additions and 0 deletions

View File

@ -52,6 +52,8 @@ stdenv.mkDerivation rec {
cp -v ca-bundle.crt $out/etc/ssl/certs
'';
setupHook = ./setup-hook.sh;
meta = {
homepage = https://curl.haxx.se/docs/caextract.html;
description = "A bundle of X.509 certificates of public Certificate Authorities (CA)";

View File

@ -0,0 +1,6 @@
cacertHook() {
export SSL_CERT_FILE=@out@/etc/ssl/certs/ca-bundle.crt
}
envHooks+=(cacertHook)
crossEnvHooks+=(cacertHook)