[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
339/376: Include cacert in the binary tarball
From: |
Ludovic Courtès |
Subject: |
339/376: Include cacert in the binary tarball |
Date: |
Wed, 28 Jan 2015 22:06:02 +0000 |
civodul pushed a commit to tag 1.8
in repository guix.
commit 20cf0127f5a0cfd417bc7256db23f6eef2ad8141
Author: Eelco Dolstra <address@hidden>
Date: Wed Dec 10 16:05:08 2014 +0100
Include cacert in the binary tarball
This prevents having to fetch Nixpkgs or cacert over http.
---
release.nix | 9 +++++----
scripts/install-nix-from-closure.sh | 7 +++++--
2 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/release.nix b/release.nix
index af0e236..a08cf7a 100644
--- a/release.nix
+++ b/release.nix
@@ -122,15 +122,16 @@ let
in
runCommand "nix-binary-tarball-${version}"
- { exportReferencesGraph = [ "closure" toplevel ];
+ { exportReferencesGraph = [ "closure1" toplevel "closure2" cacert ];
buildInputs = [ perl ];
meta.description = "Distribution-independent Nix bootstrap binaries
for ${system}";
}
''
- storePaths=$(perl ${pathsFromGraph} ./closure)
- printRegistration=1 perl ${pathsFromGraph} ./closure >
$TMPDIR/reginfo
+ storePaths=$(perl ${pathsFromGraph} ./closure1 ./closure2)
+ printRegistration=1 perl ${pathsFromGraph} ./closure1 ./closure2 >
$TMPDIR/reginfo
substitute ${./scripts/install-nix-from-closure.sh} $TMPDIR/install \
- --subst-var-by nix ${toplevel}
+ --subst-var-by nix ${toplevel} \
+ --subst-var-by cacert ${cacert}
chmod +x $TMPDIR/install
dir=nix-${version}-${system}
fn=$out/$dir.tar.bz2
diff --git a/scripts/install-nix-from-closure.sh
b/scripts/install-nix-from-closure.sh
index 467fc50..9977dca 100644
--- a/scripts/install-nix-from-closure.sh
+++ b/scripts/install-nix-from-closure.sh
@@ -5,6 +5,7 @@ set -e
dest="/nix"
self="$(dirname "$0")"
nix="@nix@"
+cacert="@cacert@"
if ! [ -e $self/.reginfo ]; then
echo "$0: incomplete installer (.reginfo is missing)" >&2
@@ -66,7 +67,7 @@ fi
. $nix/etc/profile.d/nix.sh
-if ! $nix/bin/nix-env -i $nix; then
+if ! $nix/bin/nix-env -i "$nix"; then
echo "$0: unable to install Nix into your default profile" >&2
exit 1
fi
@@ -80,7 +81,9 @@ if [ -z "$_NIX_INSTALLER_TEST" ]; then
fi
# Install an SSL certificate bundle.
-$nix/bin/nix-env -iA nixpkgs.cacert || true
+if [ -z "$SSL_CERT_FILE" ]; then
+ $nix/bin/nix-env -i "$cacert"
+fi
# Make the shell source nix.sh during login.
p=$NIX_LINK/etc/profile.d/nix.sh
- 320/376: Define ‘environ’, (continued)
- 320/376: Define ‘environ’, Ludovic Courtès, 2015/01/28
- 333/376: builtins.readFile: realise context associated with the path, Ludovic Courtès, 2015/01/28
- 332/376: Always use https to fetch the Nixpkgs channel, Ludovic Courtès, 2015/01/28
- 326/376: Link against perl.dll on Cygwin, Ludovic Courtès, 2015/01/28
- 324/376: Set custom compiler flags on Cygwin, Ludovic Courtès, 2015/01/28
- 325/376: Fix library handling on Cygwin, Ludovic Courtès, 2015/01/28
- 335/376: Don't use RPATH on Darwin, Ludovic Courtès, 2015/01/28
- 337/376: Revert "Use posix_spawn to run the pager", Ludovic Courtès, 2015/01/28
- 334/376: Update signing.txt, Ludovic Courtès, 2015/01/28
- 336/376: Cruft, Ludovic Courtès, 2015/01/28
- 339/376: Include cacert in the binary tarball,
Ludovic Courtès <=
- 340/376: Rename function, Ludovic Courtès, 2015/01/28
- 342/376: Don't do vfork in conjunction with setuid, Ludovic Courtès, 2015/01/28
- 341/376: Use vfork, Ludovic Courtès, 2015/01/28
- 345/376: allow custom docbook paths/URLs, use a working URL for docbook.rng, Ludovic Courtès, 2015/01/28
- 344/376: Urgh, Ludovic Courtès, 2015/01/28
- 343/376: Provide default pagers, Ludovic Courtès, 2015/01/28
- 346/376: Don't use ?=, Ludovic Courtès, 2015/01/28
- 347/376: Remove canary stuff, Ludovic Courtès, 2015/01/28
- 348/376: Remove dead code, Ludovic Courtès, 2015/01/28
- 350/376: Doh, Ludovic Courtès, 2015/01/28