0

On Linux, I can use printenv to print shell environment variables.

However, when I search on Nix binary cache for printenv I get No packages found.

Is there a way to get that package via Nixpks?

zuzuleinen
  • 2,604
  • 5
  • 38
  • 49

1 Answers1

1

printenv will be available if you install coreutils from Nixpkgs.

zuzuleinen
  • 2,604
  • 5
  • 38
  • 49
  • 2
    to just try out a package you can run `nix-shell -p coreutils` to open a shell with the package. For finding packages `nix-shell -p nix-index --run "nix-locate bin/printenv"` – makefu Aug 05 '22 at 21:44