From afe23b5f385901ba5972ce88b2f053526c5097a9 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sat, 13 Jan 2007 19:50:42 +0000 Subject: * 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) --- doc/manual/nix-pack-closure.xml | 8 ++++++++ doc/manual/nix-unpack-closure.xml | 6 ++++++ 2 files changed, 14 insertions(+) (limited to 'doc') diff --git a/doc/manual/nix-pack-closure.xml b/doc/manual/nix-pack-closure.xml index 12eacf5020..030b155008 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 +As a variation on the previous example, copy +azureus, and also install it in the user’s profile +on the target machine: + + +$ nix-pack-closure $(which azureus) | ssh scratchy 'nix-env -i $(nix-unpack-closure)' + + diff --git a/doc/manual/nix-unpack-closure.xml b/doc/manual/nix-unpack-closure.xml index 7c6d12d089..e95225e819 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 nix-pack-closure for details and examples. +The top-level paths in the closure (i.e., the paths passed to +the original nix-pack-closure call that created the +closure) are printed on standard output. These paths can be passed, +for instance, to nix-env -i to install them into a +user environment on the target machine. + -- cgit 1.4.1