about summary refs log tree commit diff
path: root/doc/manual/command-ref/env-common.xml
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-06-01T13·14+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-06-01T13·14+0200
commitda196ec68f8b34e0c4c7ee32beb9073b31b1531e (patch)
treebd67404b329704a131a01a8d1f3ba2f9f061f621 /doc/manual/command-ref/env-common.xml
parentc1323b53e3a1650271469f713804e628509a858c (diff)
Document tarball downloading
Diffstat (limited to 'doc/manual/command-ref/env-common.xml')
-rw-r--r--doc/manual/command-ref/env-common.xml16
1 files changed, 14 insertions, 2 deletions
diff --git a/doc/manual/command-ref/env-common.xml b/doc/manual/command-ref/env-common.xml
index 39e3e9cff2e3..cb1ecfee123e 100644
--- a/doc/manual/command-ref/env-common.xml
+++ b/doc/manual/command-ref/env-common.xml
@@ -36,8 +36,20 @@ nixpkgs=/home/eelco/Dev/nixpkgs-branch:/etc/nixos</screen>
     <literal>&lt;nixpkgs/<replaceable>path</replaceable>></literal> in
     <filename>/home/eelco/Dev/nixpkgs-branch/<replaceable>path</replaceable></filename>
     and
-    <filename>/etc/nixos/nixpkgs/<replaceable>path</replaceable></filename>.
-    </para>
+    <filename>/etc/nixos/nixpkgs/<replaceable>path</replaceable></filename>.</para>
+
+    <para>If a path in the Nix search path starts with
+    <literal>http://</literal> or <literal>https://</literal>, it is
+    interpreted as the URL of a tarball that will be downloaded and
+    unpacked to a temporary location. The tarball must consist of a
+    single top-level directory. For example, setting
+    <envar>NIX_PATH</envar> to
+
+    <screen>
+nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-14.12.tar.gz</screen>
+
+    tells Nix to download the latest revision in the Nixpkgs/NixOS
+    14.12 channel.</para>
 
     <para>The search path can be extended using the <option
     linkend="opt-I">-I</option> option, which takes precedence over