Fix fetchbower to handle SSL origins

This commit is contained in:
Andraz Bajt 2017-01-23 15:50:18 +01:00
parent 24fed4d344
commit d72406985b
No known key found for this signature in database
GPG Key ID: 7B7F9EFB7B095BF9

View File

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