Merge pull request #74536 from andrew-d/andrew/bazel-ssl-certs

buildBazelPackage: also set the SSL_CERT_FILE environment variable
This commit is contained in:
Florian Klink 2019-11-28 22:55:32 +01:00 committed by GitHub
commit 8253c106c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 ''