@@ -1,35 +0,0 @@
1−#!/usr/bin/env /sh
2−
3−set -e
4−
5−self="."
6−nix="@nix@"
7−cacert="@cacert@"
8−
9−export SSL_CERT_FILE="$cacert/etc/ssl/certs/ca-bundle.crt"
10−
11−if ! [ -e $self/.reginfo ]; then
12− echo "$0: incomplete installer (.reginfo is missing)" >&2
13− exit 1
14−fi
15−
16−echo "initialising Nix database..." >&2
17−if ! $nix/bin/nix-store --init; then
18− echo "$0: failed to initialize the Nix database" >&2
19− exit 1
20−fi
21−
22−if ! $nix/bin/nix-store --load-db < $self/.reginfo; then
23− echo "$0: unable to register valid paths" >&2
24− exit 1
25−fi
26−
27−. $nix/etc/profile.d/nix.sh
28−
29−if ! $nix/bin/nix-env -i "$nix"; then
30− echo "$0: unable to install Nix into your default profile" >&2
31− exit 1
32−fi
33−
34−$nix/bin/nix-channel --add https://nixos.org/channels/nixpkgs-unstable
35−$nix/bin/nix-channel --update nixpkgs