Skip to content

Commit

Permalink
Fix fetchbower to handle SSL origins
Browse files Browse the repository at this point in the history
(cherry picked from commit d724069)
Signed-off-by: Domen Kožar <domen@dev.si>
  • Loading branch information
edofic authored and domenkozar committed Jan 23, 2017
1 parent dc6a857 commit 0bced77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/build-support/fetchbower/default.nix
@@ -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 0bced77

Please sign in to comment.