pare-nix
v0.24.2Pare Nix -- Structured Nix build, develop, and flake operations as typed JSON.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
build Nix Build
Builds a Nix derivation and returns structured output paths and diagnostics.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Prefer compact output |
installable | string | Installable reference (e.g. '.#package', 'nixpkgs#hello') |
noLink | boolean | Do not create output link (--no-link) |
outLink | string | Output link path (--out-link) |
path | string | Project root path |
run Nix Run
Runs a Nix application from an installable and returns stdout, stderr, exit code, and duration.
| Parameter | Type | Description |
|---|---|---|
args | array | Arguments to pass to the application after -- |
compact | boolean | Prefer compact output |
installable | string | Installable reference (e.g. '.#app', 'nixpkgs#hello') |
path | string | Project root path |
develop Nix Develop
Enters or queries a Nix dev shell. When a command is provided, runs it inside the dev shell and returns the result.
| Parameter | Type | Description |
|---|---|---|
command | string | Command to run inside the dev shell (uses --command) |
compact | boolean | Prefer compact output |
installable | string | Installable reference for the dev shell (e.g. '.#devShell') |
path | string | Project root path |
shell Nix Shell
Makes packages available in the environment and optionally runs a command. Returns stdout, stderr, exit code, and duration.
| Parameter | Type | Description |
|---|---|---|
packages * | array | Installable references for packages to make available (e.g. ['nixpkgs#jq', 'nixpkgs#curl']) |
command | string | Command to run with the packages available (uses --command) |
compact | boolean | Prefer compact output |
path | string | Project root path |
flake-show Nix Flake Show
Shows the outputs of a Nix flake as a structured tree. Uses --json for machine-parseable output by default.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Prefer compact output |
flakeRef | string | Flake reference (defaults to '.') |
json | boolean | Use --json for machine-parseable output (default true) |
path | string | Project root path |
flake-check Nix Flake Check
Checks a Nix flake for errors and returns structured check results, warnings, and errors.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Prefer compact output |
flakeRef | string | Flake reference (defaults to '.') |
path | string | Project root path |
flake-update Nix Flake Update
Updates flake lock file inputs and returns structured information about what was updated.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Prefer compact output |
flakeRef | string | Flake reference (defaults to current directory) |
inputs | array | Specific inputs to update (e.g. ['nixpkgs', 'flake-utils']). If omitted, all inputs are updated. |
path | string | Project root path |