From f12492c66dc5c71c22ce2eb1788dacd86b1dfb1f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 2 Jan 2013 22:36:08 +0100 Subject: [PATCH] Manual: Fix "nix-store --export" example --- doc/manual/package-management.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/manual/package-management.xml b/doc/manual/package-management.xml index ca19b1325..a0ada63e5 100644 --- a/doc/manual/package-management.xml +++ b/doc/manual/package-management.xml @@ -538,7 +538,7 @@ dependencies) to a file, and then unpack that file into another Nix store. For example, -$ nix-store --export $(type -p firefox) > firefox.closure +$ nix-store --export $(nix-store -qR $(type -p firefox)) > firefox.closure writes the closure of Firefox to a file. You can then copy this file to another machine and install the closure: @@ -552,7 +552,7 @@ another command, e.g. to copy and install a closure directly to/on another machine: -$ nix-store --export $(type -p firefox) | bzip2 | \ +$ nix-store --export $(nix-store -qR $(type -p firefox)) | bzip2 | \ ssh alice@itchy.example.org "bunzip2 | nix-store --import" But note that nix-copy-closure is generally more @@ -583,7 +583,7 @@ $ nix-env -i firefox and Nix has to build a path that it sees is already present in /mnt/nix, then it will just copy from there instead of building it from source. - +