Use a shorter Nixpkgs channel URL

This commit is contained in:
Eelco Dolstra 2012-11-09 13:33:35 +01:00
parent c31ebc50aa
commit a9a8baaccb
4 changed files with 4 additions and 4 deletions

View file

@ -103,7 +103,7 @@ respectively.</para>
<para>To subscribe to the Nixpkgs channel and install the GNU Hello package:</para> <para>To subscribe to the Nixpkgs channel and install the GNU Hello package:</para>
<screen> <screen>
$ nix-channel --add http://nixos.org/releases/nixpkgs/channels/nixpkgs-unstable $ nix-channel --add http://nixos.org/channels/nixpkgs-unstable
$ nix-channel --update $ nix-channel --update
$ nix-env -iA nixpkgs.hello</screen> $ nix-env -iA nixpkgs.hello</screen>

View file

@ -443,7 +443,7 @@ URL.</para>
<command>nix-channel --add</command>, e.g., <command>nix-channel --add</command>, e.g.,
<screen> <screen>
$ nix-channel --add http://nixos.org/releases/nixpkgs/channels/nixpkgs-unstable</screen> $ nix-channel --add http://nixos.org/channels/nixpkgs-unstable</screen>
subscribes you to a channel that always contains that latest version subscribes you to a channel that always contains that latest version
of the Nix Packages collection. (Instead of of the Nix Packages collection. (Instead of

View file

@ -41,7 +41,7 @@ file).</para></listitem>
<listitem><para>Subscribe to the Nix Packages channel. <listitem><para>Subscribe to the Nix Packages channel.
<screen> <screen>
$ nix-channel --add http://nixos.org/releases/nixpkgs/channels/nixpkgs-unstable</screen> $ nix-channel --add http://nixos.org/channels/nixpkgs-unstable</screen>
</para></listitem> </para></listitem>

View file

@ -10,7 +10,7 @@ if test -n "$HOME"; then
# Subscribe the root user to the Nixpkgs channel by default. # Subscribe the root user to the Nixpkgs channel by default.
if [ ! -e $HOME/.nix-channels ]; then if [ ! -e $HOME/.nix-channels ]; then
echo "http://nixos.org/releases/nixos/channels/nixpkgs-unstable nixpkgs" > $HOME/.nix-channels echo "http://nixos.org/channels/nixpkgs-unstable nixpkgs" > $HOME/.nix-channels
fi fi
export PATH=$NIX_LINK/bin:$PATH export PATH=$NIX_LINK/bin:$PATH