mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 01:20:40 +00:00
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:
commit
8253c106c6
|
@ -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 ''
|
||||
|
|
Loading…
Reference in a new issue