2025-05-08 12:26:01 -06:00
|
|
|
# nix edit
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
> Open the Nix expression of a Nix package in `$EDITOR`.
|
|
|
|
|
> More information: <https://nix.dev/manual/nix/stable/command-ref/new-cli/nix3-edit.html>.
|
2025-05-08 12:26:01 -06:00
|
|
|
|
|
|
|
|
- Open the source of the Nix expression of a package from nixpkgs in your `$EDITOR`:
|
|
|
|
|
|
|
|
|
|
`nix edit {{nixpkgs#pkg}}`
|
|
|
|
|
|
|
|
|
|
- Dump the source of a package to `stdout`:
|
|
|
|
|
|
|
|
|
|
`EDITOR=cat nix edit {{nixpkgs#pkg}}`
|