Skip to content

Commit

Permalink
doc: convention improvements for copying closure (#10702)
Browse files Browse the repository at this point in the history
* doc: convention improvements for copying closure

   use -P, which only considers executables but not shell builtins

Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
  • Loading branch information
eflanagan0 and fricklerhandwerk committed May 14, 2024
1 parent 2f0031a commit 05ad4e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/manual/src/command-ref/nix-copy-closure.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@ authentication, you can avoid typing the passphrase with `ssh-agent`.
Copy Firefox with all its dependencies to a remote machine:

```console
$ nix-copy-closure --to alice@itchy.labs $(type -tP firefox)
$ nix-copy-closure --to alice@itchy.example.org $(type -P firefox)
```

Copy Subversion from a remote machine and then install it into a user
environment:

```console
$ nix-copy-closure --from alice@itchy.labs \
$ nix-copy-closure --from alice@itchy.example.org \
/nix/store/0dj0503hjxy5mbwlafv1rsbdiyx1gkdy-subversion-1.4.4
$ nix-env --install /nix/store/0dj0503hjxy5mbwlafv1rsbdiyx1gkdy-subversion-1.4.4
```

0 comments on commit 05ad4e8

Please sign in to comment.