diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2007-01-13 19:50:42 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2007-01-13 19:50:42 +0000 |
commit | afe23b5f385901ba5972ce88b2f053526c5097a9 (patch) | |
tree | fc65ae5a14e7260f130cd4417d7069b0ededdc60 /doc | |
parent | f25f9000451ec5b9fb3221cdf2a297fe24ab7357 (diff) |
* nix-pack-closure: store the top-level store paths in the closure.
* nix-unpack-closure: extract the top-level paths from the closure and
print them on stdout. This allows them to be installed, e.g.,
"nix-env -i $(nix-unpack-closure)". (NIX-64)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/manual/nix-pack-closure.xml | 8 | ||||
-rw-r--r-- | doc/manual/nix-unpack-closure.xml | 6 |
2 files changed, 14 insertions, 0 deletions
diff --git a/doc/manual/nix-pack-closure.xml b/doc/manual/nix-pack-closure.xml index 12eacf502..030b15500 100644 --- a/doc/manual/nix-pack-closure.xml +++ b/doc/manual/nix-pack-closure.xml @@ -58,6 +58,14 @@ $ nix-pack-closure $(which azureus) | ssh scratchy nix-unpack-closure</screen> </para> +<para>As a variation on the previous example, copy +<command>azureus</command>, and also install it in the user’s profile +on the target machine: + +<screen> +$ nix-pack-closure $(which azureus) | ssh scratchy 'nix-env -i $(nix-unpack-closure)'</screen> + + </refsection> diff --git a/doc/manual/nix-unpack-closure.xml b/doc/manual/nix-unpack-closure.xml index 7c6d12d08..e95225e81 100644 --- a/doc/manual/nix-unpack-closure.xml +++ b/doc/manual/nix-unpack-closure.xml @@ -22,6 +22,12 @@ closure is a single file read from standard input. See the description of <command>nix-pack-closure</command> for details and examples.</para> +<para>The top-level paths in the closure (i.e., the paths passed to +the original <command>nix-pack-closure</command> call that created the +closure) are printed on standard output. These paths can be passed, +for instance, to <literal>nix-env -i</literal> to install them into a +user environment on the target machine.</para> + </refsection> |