about summary refs log tree commit diff
path: root/doc/manual/command-ref/nix-build.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/nix-build.xml
parentc1323b53e3a1650271469f713804e628509a858c (diff)
Document tarball downloading
Diffstat (limited to 'doc/manual/command-ref/nix-build.xml')
-rw-r--r--doc/manual/command-ref/nix-build.xml16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/manual/command-ref/nix-build.xml b/doc/manual/command-ref/nix-build.xml
index dc5841c27a5a..d6b2e5e5adb7 100644
--- a/doc/manual/command-ref/nix-build.xml
+++ b/doc/manual/command-ref/nix-build.xml
@@ -58,6 +58,13 @@ and so on).</para>
 <command>nix-build</command> will use <filename>default.nix</filename>
 in the current directory, if it exists.</para>
 
+<para>If an element of <replaceable>paths</replaceable> 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 include a single
+top-level directory containing at least a file named
+<filename>default.nix</filename>.</para>
+
 <para><command>nix-build</command> is essentially a wrapper around
 <link
 linkend="sec-nix-instantiate"><command>nix-instantiate</command></link>
@@ -175,6 +182,15 @@ bar
 
 </para>
 
+<para>Build the GNU Hello package from the latest revision of the
+master branch of Nixpkgs:
+
+<screen>
+$ nix-build https://github.com/NixOS/nixpkgs/archive/master.tar.gz -A hello
+</screen>
+
+</para>
+
 </refsection>