nix-eval

Evaluate Nix expressions and inspect derivations using nix-instantiate and nix eval.

1|Updated Feb 11, 2026
One-click install
npx skills add https://github.com/ekala-project/ekala-claude-skills --skill nix-eval
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nix-eval
Source: https://github.com/ekala-project/ekala-claude-skills/tree/main/skills/nix-eval
Command: npx skills add https://github.com/ekala-project/ekala-claude-skills --skill nix-eval

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps users understand and debug the evaluation of Nix expressions, making it easier to inspect derivations and troubleshoot Nix code.

Core Features & Use Cases

  • Evaluate Nix Expressions: Use nix-instantiate and nix eval to get values from Nix code.
  • Inspect Derivations: Examine the inputs, outputs, and environment of Nix derivations.
  • Debug Evaluation Errors: Utilize flags like --show-trace to pinpoint issues in Nix expressions.
  • Use Case: You're unsure why a specific Nix package isn't building correctly. You can use this skill to evaluate the relevant Nix expression, inspect the derivation's build inputs, and check for any evaluation errors.

Quick Start

Evaluate the Nix expression '1 + 1' and show the result.

Frequently Asked Questions about nix-eval

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I evaluate Nix expressions to inspect derivation attributes?

To evaluate Nix expressions, you use `nix eval` or `nix-instantiate` to query attribute values and inspect derivation inputs, outputs, and environment variables directly from your Nix code.

What is the best way to debug Nix evaluation errors with a stack trace?

Debugging Nix evaluation errors involves running `nix eval` or `nix-instantiate` with the `--show-trace` flag to pinpoint the exact location and cause of the failure within your Nix expressions.

Can I inspect flake-based Nix projects to troubleshoot build failures?

Yes, you can inspect flake-based Nix projects by evaluating flake outputs to examine derivations, check build inputs, and identify evaluation issues causing your package build failures.

Why does my Nix package fail to build during evaluation?

Nix package build failures during evaluation often stem from incorrect derivation inputs or syntax errors. You can evaluate the relevant Nix expression and use `--show-trace` to identify the specific issue.

Does nix eval work with nixpkgs to query Nix language semantics?

Yes, `nix eval` works with nixpkgs to query Nix language semantics, allowing you to evaluate expressions, inspect derivation attributes, and understand how traditional and flake-based projects are structured.