1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 01:22:08 +02:00
tldr/pages/common/nix3-edit.md
4G3NT 87ec0727fc
pages*: add backticks to every io stream (#10442)
* pages*: add backticks to every io stream
2023-07-02 18:42:01 +05:30

359 B

nix edit

Open the Nix expression of a Nix package in $EDITOR. More information: https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-edit.html.

  • 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}}