LinuxCommandLibrary

nix3-edit

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

TLDR

Open the source of the Nix expression of a package from nixpkgs in your $EDITOR

$ nix edit [nixpkgs#pkg]
copy


Dump the source of a package to stdout
$ EDITOR=cat nix edit [nixpkgs#pkg]
copy

Copied to clipboard