nix-debugging

Community

Diagnose and fix Nix build and evaluation errors

AuthorJylhis
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps developers rapidly diagnose and resolve Nix evaluation and build failures by consolidating common error patterns and targeted debugging techniques. It reduces time spent chasing obscure evaluation errors, infinite recursion, hash mismatches, import-from-derivation issues, collision errors, and unexpected closure size or store path problems.

Core Features & Use Cases

  • Evaluation and Recursion Diagnosis: Techniques to locate sources of infinite recursion and attribute-missing errors using tracing and careful overlay usage.
  • Build and Hash Recovery: Guidance on resolving fixed-output derivation hash mismatches, handling unfree packages, and avoiding IFD by prefetching or adjusting fetchers.
  • Closure, Logs, and Dependency Analysis: Use cases for nix log, nix why-depends, nix path-info, and store inspection to find unexpected dependencies, large closures, and to interpret build logs for fixes.
  • Real-world Example: When an overlay causes infinite recursion or a package fails with a hash mismatch, the Skill walks through using builtins.trace, nix eval, and build debugging steps to isolate and fix the root cause.

Quick Start

Ask the skill to analyze a Nix evaluation or build error and produce targeted debugging steps.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: nix-debugging
Download link: https://github.com/Jylhis/claude-marketplace/archive/main.zip#nix-debugging

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.