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}}
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.