diff --git a/doc/manual/command-ref/nix-store.xml b/doc/manual/command-ref/nix-store.xml index 340f61210..fc468f79d 100644 --- a/doc/manual/command-ref/nix-store.xml +++ b/doc/manual/command-ref/nix-store.xml @@ -1115,17 +1115,17 @@ path). This command does not produce a closure of the specified paths, so if a store path references other store paths that are missing in the target Nix store, the import will fail. To -copy a whole closure, do something like +copy a whole closure, do something like: $ nix-store --export $(nix-store -qR paths) > out - +To import the whole closure again, run: -For an example of how and - can be used, see the source of the nix-copy-closure -command. + +$ nix-store --import < out + +