Skip to content

Commit

Permalink
Fix fetchbower to handle SSL origins
Browse files Browse the repository at this point in the history
  • Loading branch information
edofic committed Jan 23, 2017
1 parent 24fed4d commit d724069
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/build-support/fetchbower/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, lib, bower2nix }:
{ stdenv, lib, bower2nix, cacert }:
let
bowerVersion = version:
let
Expand All @@ -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
Expand Down

0 comments on commit d724069

Please sign in to comment.