Fix fetchbower to handle SSL origins
This commit is contained in:
parent
24fed4d344
commit
d72406985b
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, lib, bower2nix }:
|
{ stdenv, lib, bower2nix, cacert }:
|
||||||
let
|
let
|
||||||
bowerVersion = version:
|
bowerVersion = version:
|
||||||
let
|
let
|
||||||
|
@ -9,6 +9,7 @@ let
|
||||||
|
|
||||||
fetchbower = name: version: target: outputHash: stdenv.mkDerivation {
|
fetchbower = name: version: target: outputHash: stdenv.mkDerivation {
|
||||||
name = "${name}-${bowerVersion version}";
|
name = "${name}-${bowerVersion version}";
|
||||||
|
SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
|
||||||
buildCommand = ''
|
buildCommand = ''
|
||||||
fetch-bower --quiet --out=$PWD/out "${name}" "${target}" "${version}"
|
fetch-bower --quiet --out=$PWD/out "${name}" "${target}" "${version}"
|
||||||
# In some cases, the result of fetchBower is different depending
|
# In some cases, the result of fetchBower is different depending
|
||||||
|
|
Loading…
Reference in a new issue