mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 05:56:15 +02:00
Binary tarball: Automatically fetch the Nixpkgs channel
This commit is contained in:
parent
b632153ebd
commit
c5839752b9
1 changed files with 7 additions and 1 deletions
|
@ -15,6 +15,12 @@ if ! $nix/bin/nix-env -i @nix@; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
||||||
|
fi
|
||||||
|
$nix/bin/nix-channel --update nixpkgs
|
||||||
|
|
||||||
# Add nix.sh to the shell's profile.d directory.
|
# Add nix.sh to the shell's profile.d directory.
|
||||||
p=$NIX_LINK/etc/profile.d/nix.sh
|
p=$NIX_LINK/etc/profile.d/nix.sh
|
||||||
|
|
||||||
|
@ -31,4 +37,4 @@ variables are set, please add the line
|
||||||
|
|
||||||
to your shell profile (e.g. ~/.profile).
|
to your shell profile (e.g. ~/.profile).
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue