diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-07T13·36+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-07T13·37+0200 |
commit | 4a198dae746379effe04c19341f1d370461c71c7 (patch) | |
tree | 632f5b8e3a7ba8e0f76558eb774d4fc1cb0d655a /scripts/install-nix-from-closure.sh | |
parent | 98873ff7defffda9166c88e4e7c318119ca5eccc (diff) |
install-nix-from-closure.sh: Use https channel if possible
Diffstat (limited to 'scripts/install-nix-from-closure.sh')
-rw-r--r-- | scripts/install-nix-from-closure.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/install-nix-from-closure.sh b/scripts/install-nix-from-closure.sh index 0a2890eeed95..8aa227afaacb 100644 --- a/scripts/install-nix-from-closure.sh +++ b/scripts/install-nix-from-closure.sh @@ -73,7 +73,11 @@ fi # Subscribe the user to the Nixpkgs channel and fetch it. if ! $nix/bin/nix-channel --list | grep -q "^nixpkgs "; then - $nix/bin/nix-channel --add http://nixos.org/channels/nixpkgs-unstable + if [ -n "$SSL_CERT_FILE" ]; then + $nix/bin/nix-channel --add https://nixos.org/channels/nixpkgs-unstable + else + $nix/bin/nix-channel --add http://nixos.org/channels/nixpkgs-unstable + fi fi $nix/bin/nix-channel --update nixpkgs |