diff options
author | Andraz Bajt <andraz@bajt.me> | 2017-01-23 15:50:18 +0100 |
---|---|---|
committer | Andraz Bajt <andraz@bajt.me> | 2017-01-23 15:50:18 +0100 |
commit | d72406985b9d7c2feeada257e64bfb7aa6ae71ce (patch) | |
tree | 58f6b0c09a1dae2d8b5a3d59f4ac31a2ba8a9fd2 /pkgs/build-support | |
parent | 24fed4d344852549489072ead8cd1e079e87e02b (diff) |
Fix fetchbower to handle SSL origins
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/fetchbower/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/build-support/fetchbower/default.nix b/pkgs/build-support/fetchbower/default.nix index 11d88ae10e9f..835fbec6bf0e 100644 --- a/pkgs/build-support/fetchbower/default.nix +++ b/pkgs/build-support/fetchbower/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, bower2nix }: +{ stdenv, lib, bower2nix, cacert }: let bowerVersion = version: let @@ -9,6 +9,7 @@ let fetchbower = name: version: target: outputHash: stdenv.mkDerivation { name = "${name}-${bowerVersion version}"; + SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt"; buildCommand = '' fetch-bower --quiet --out=$PWD/out "${name}" "${target}" "${version}" # In some cases, the result of fetchBower is different depending |