commands.sh

nix edit

all

Open the Nix expression of a Nix package in `$EDITOR`.

More info →

Examples (2)

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
made by @shridhargupta | data from tldr-pages