User:Researchcrowbar

From NixOS Wiki
Revision as of 14:48, 1 February 2024 by imported>Researchcrowbar (add nix-shell --packages examples)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Note: This page is used for format[1] experiments and quick notes.

Notes

Note that -p accepts multiple full nix expressions that are valid in the buildInputs = [ ... ] shown above, not only package names. So the following is also legal:

nix-shell --packages sqlite 'git.override { withManual = false; }'

On that note, it is also possible to bring a flake result into nix-shell with a bit of manual plumbing:

nix-shell --packages '(builtins.getFlake "github:lf-/clipper").packages.${builtins.currentSystem}.default' tshark