From fa791116a35479bd295f5666c8d35fba60e0c98d Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 18 Nov 2008 14:43:40 +0000 Subject: * Get rid of nix-pack-closure / nix-unpack-closure, they're redundant. --- doc/manual/Makefile.am | 1 - doc/manual/manual.xml | 8 ---- doc/manual/nix-pack-closure.xml | 82 --------------------------------------- doc/manual/nix-unpack-closure.xml | 42 -------------------- doc/manual/release-notes.xml | 7 ++++ 5 files changed, 7 insertions(+), 133 deletions(-) delete mode 100644 doc/manual/nix-pack-closure.xml delete mode 100644 doc/manual/nix-unpack-closure.xml (limited to 'doc') diff --git a/doc/manual/Makefile.am b/doc/manual/Makefile.am index 1011ee7aa1b2..62a7e9bff410 100644 --- a/doc/manual/Makefile.am +++ b/doc/manual/Makefile.am @@ -14,7 +14,6 @@ XSLTPROC = $(xsltproc) $(xmlflags) \ man1_MANS = nix-env.1 nix-build.1 nix-store.1 nix-instantiate.1 \ nix-collect-garbage.1 nix-push.1 nix-pull.1 \ nix-prefetch-url.1 nix-channel.1 \ - nix-pack-closure.1 nix-unpack-closure.1 \ nix-install-package.1 nix-hash.1 nix-copy-closure.1 FIGURES = figures/user-environments.png diff --git a/doc/manual/manual.xml b/doc/manual/manual.xml index d564b09d89a8..22e9f6afd84d 100644 --- a/doc/manual/manual.xml +++ b/doc/manual/manual.xml @@ -89,10 +89,6 @@ nix-install-package -
- nix-pack-closure - -
nix-prefetch-url @@ -105,10 +101,6 @@ nix-push
-
- nix-unpack-closure - -
diff --git a/doc/manual/nix-pack-closure.xml b/doc/manual/nix-pack-closure.xml deleted file mode 100644 index c11dacd26f54..000000000000 --- a/doc/manual/nix-pack-closure.xml +++ /dev/null @@ -1,82 +0,0 @@ - - - - nix-pack-closure - 1 - Nix - - - - - nix-pack-closure - pack the closure of a store path into a single file that - can be unpacked with - nix-unpack-closure - - - - - nix-pack-closure - paths - - - - -Description - -The command nix-pack-closure packs the -contents of the store paths paths and -all their dependencies into a single file, which -is written to standard output. (That is, it -serialises paths.) -The output can then be unpacked into the Nix store of another machine -using nix-unpack-closure. - -Together, nix-pack-closure and -nix-unpack-closure provide a quick and easy way to -deploy a package to a different machine. However, as the output of -nix-pack-closure tends to be rather large (since it -contains all dependencies), it’s not very efficient. -nix-push and nix-pull are more -efficient, but are also a bit more cumbersome to use. - - - - -Examples - -To copy some instance of Subversion with all its dependencies to -another machine: - - -$ nix-pack-closure /nix/store/hj232g1r...-subversion-1.3.0 > svn.closure - -Copy svn.closure to the remote machine, then on the remote machine do: -$ nix-unpack-closure < svn.closure - - - -Copy the program azureus with all its -dependencies to the machine scratchy: - - -$ 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 deleted file mode 100644 index dce0d1db43fa..000000000000 --- a/doc/manual/nix-unpack-closure.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - nix-unpack-closure - 1 - Nix - - - - - nix-unpack-closure - unpack the closure of a store path created by nix-pack-closure into the Nix store - - - - - nix-unpack-closure - - - - -Description - -The command nix-unpack-closure unpacks the -closure of a set of store paths created by -nix-pack-closure into the local Nix store. The -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. - - - - - diff --git a/doc/manual/release-notes.xml b/doc/manual/release-notes.xml index 112ffabd7013..b64e2025c452 100644 --- a/doc/manual/release-notes.xml +++ b/doc/manual/release-notes.xml @@ -47,6 +47,13 @@ nix-prefetch-url now supports mirror:// URLs. + Removed the commands + nix-pack-closure and + nix-unpack-closure. You can do almost the same + thing but much more efficiently by doing nix-store --export + $(nix-store -qR paths) > closure and + nix-store --import < closure. + -- cgit 1.4.1