Fix fetchbower to handle SSL origins

nixos-19.03
Andraz Bajt 6 years ago
parent 24fed4d344
commit d72406985b
No known key found for this signature in database
GPG Key ID: 7B7F9EFB7B095BF9
  1. 3
      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

Loading…
Cancel
Save