Skip to main content

Module nix_cli

Module nix_cli 

Source
Expand description

Canonical nix CLI invocations. Every builder returns a pre-configured Command ready for spawn() (with whatever stdio + env the caller layers on).

Functions§

build_dry_run
nix build --dry-run --print-out-paths --no-link <installable> — print the would-be-built out paths without realising derivations.
eval_expr
nix eval --impure --json --expr <expr> — evaluate a literal expression and emit a JSON value on stdout.
eval_installable
nix eval --impure --json <installable> — evaluate an installable (a flake-attribute reference).
flake_check
nix flake check <flake-ref> — type-check the flake.
flake_show
nix flake show --json <flake-ref> — print the flake’s output inventory.