cacert: simplify setupHook
Triggering this setupHook for dependencies at targetOffset does not work in cross-compilation cases where such a dependency is lacking. This simplified setupHook is more robust.
This commit is contained in:
parent
37e333af9a
commit
e7ede726ba
@ -1,7 +1,3 @@
|
||||
cacertHook() {
|
||||
export NIX_SSL_CERT_FILE=@out@/etc/ssl/certs/ca-bundle.crt
|
||||
# left for compatibility
|
||||
export SSL_CERT_FILE=@out@/etc/ssl/certs/ca-bundle.crt
|
||||
}
|
||||
|
||||
addEnvHooks "$targetOffset" cacertHook
|
||||
export NIX_SSL_CERT_FILE=@out@/etc/ssl/certs/ca-bundle.crt
|
||||
# left for compatibility
|
||||
export SSL_CERT_FILE=@out@/etc/ssl/certs/ca-bundle.crt
|
||||
|
Loading…
x
Reference in New Issue
Block a user