buildBazelPackage: also set the SSL_CERT_FILE environment variable

This commit is contained in:
Andrew Dunham 2019-11-28 13:39:20 -08:00
parent d7b63dc4ce
commit 5e24b9e4ed

View file

@ -46,6 +46,9 @@ in stdenv.mkDerivation (fBuildAttrs // {
export HOME="$NIX_BUILD_TOP"
# This is needed for git_repository with https remotes
export GIT_SSL_CAINFO="${cacert}/etc/ssl/certs/ca-bundle.crt"
# This is needed for Bazel fetchers that are themselves programs (e.g.
# rules_go using the go toolchain)
export SSL_CERT_FILE="${cacert}/etc/ssl/certs/ca-bundle.crt"
'';
buildPhase = fFetchAttrs.buildPhase or ''