about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorAndrew Dunham <andrew@du.nham.ca>2019-11-28 13:39:20 -0800
committerAndrew Dunham <andrew@du.nham.ca>2019-11-28 13:39:20 -0800
commit5e24b9e4ed4093c7803f837496c1825e57fbefac (patch)
tree0cc8e3310f6bf24fc1804a4c91e1a0820657a9ee /pkgs
parentd7b63dc4cef96b184aa29bd136704b8b22c9b838 (diff)
downloadnixlib-5e24b9e4ed4093c7803f837496c1825e57fbefac.tar
nixlib-5e24b9e4ed4093c7803f837496c1825e57fbefac.tar.gz
nixlib-5e24b9e4ed4093c7803f837496c1825e57fbefac.tar.bz2
nixlib-5e24b9e4ed4093c7803f837496c1825e57fbefac.tar.lz
nixlib-5e24b9e4ed4093c7803f837496c1825e57fbefac.tar.xz
nixlib-5e24b9e4ed4093c7803f837496c1825e57fbefac.tar.zst
nixlib-5e24b9e4ed4093c7803f837496c1825e57fbefac.zip
buildBazelPackage: also set the SSL_CERT_FILE environment variable
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/build-support/build-bazel-package/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/build-support/build-bazel-package/default.nix b/pkgs/build-support/build-bazel-package/default.nix
index be256b8e591b..d1a8983b2098 100644
--- a/pkgs/build-support/build-bazel-package/default.nix
+++ b/pkgs/build-support/build-bazel-package/default.nix
@@ -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 ''