guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

118/376: install-nix-from-closure.sh: Use https channel if possible


From: Ludovic Courtès
Subject: 118/376: install-nix-from-closure.sh: Use https channel if possible
Date: Wed, 28 Jan 2015 22:04:26 +0000

civodul pushed a commit to tag 1.8
in repository guix.

commit 4a198dae746379effe04c19341f1d370461c71c7
Author: Eelco Dolstra <address@hidden>
Date:   Thu Aug 7 15:36:54 2014 +0200

    install-nix-from-closure.sh: Use https channel if possible
---
 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 0a2890e..8aa227a 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
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]