1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-12 20:11:03 +01:00

Merge pull request #14661 from roberth/issue-13994

Document and test -- separator behavior with installables
This commit is contained in:
Eelco Dolstra 2025-12-03 20:14:43 +00:00 committed by GitHub
commit 29849afa63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 44 additions and 0 deletions

View file

@ -33,6 +33,16 @@ R""(
# nix run nixpkgs#vim -- --help
```
* Run the default app from the current directory with arguments:
```console
# nix run . -- arg1 arg2
```
Note: The first positional argument is always treated as the *installable*,
even after `--`. To pass arguments to the default installable, specify it
explicitly: `nix run . -- arg1 arg2` or `nix run -- . arg1 arg2`.
# Description
`nix run` builds and runs [*installable*](./nix.md#installables), which must evaluate to an