nix-typescript

Update fetchPnpmDeps hashes in nix/modules/typescript.nix after pnpm-lock.yaml changes.

47|9|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/juspay/kolu --skill nix-typescript
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nix-typescript
Source: https://github.com/juspay/kolu/tree/main/.opencode/skills/nix-typescript
Command: npx skills add https://github.com/juspay/kolu --skill nix-typescript

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Managing dependency hashes for Nix-based builds of TypeScript projects using pnpm; when pnpm-lock.yaml changes, fetchPnpmDeps hashes can become stale causing nix build failures.

Core Features & Use Cases

  • Hash management for fetchPnpmDeps in nix/modules/typescript.nix
  • Guidance to update hash in nix/modules/typescript.nix after lockfile changes
  • Build and run flows using nix build and nix run to maintain reproducible environments

Quick Start

Follow the hash-fix recipe: run nix build to trigger the mismatch, extract the correct hash from the error, and update the hash in nix/modules/typescript.nix, then re-run nix build.

Frequently Asked Questions about nix-typescript

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

FAQPage Schema
How do I fix hash mismatch failures when running nix build for a pnpm TypeScript project?

When your pnpm-lock.yaml changes, the fetchPnpmDeps hashes become stale, causing nix build failures because the pinned hash in nix/modules/typescript.nix no longer matches the actual lockfile hash.

How do I update the fetchPnpmDeps hash after changing pnpm-lock.yaml?

You need to update the pinned hash in nix/modules/typescript.nix whenever the pnpm-lock.yaml changes to ensure fetchPnpmDeps can successfully fetch dependencies during nix build or nix run.

When do I need to update the pinned hash in my Nix TypeScript module?

The Skill manages hash alignment for Nix and pnpm builds by updating the pinned hash in nix/modules/typescript.nix, ensuring fetchPnpmDeps succeeds when pnpm-lock.yaml changes to maintain a reproducible environment.

Does this hash fix recipe work for both nix build and nix run commands?

Before using this Skill, you need a TypeScript project using pnpm with a pnpm-lock.yaml and a Nix configuration containing nix/modules/typescript.nix to receive the updated fetchPnpmDeps hash.

What is the best way to maintain reproducible Nix builds for a pnpm TypeScript project?

After updating the pinned hash in nix/modules/typescript.nix, you can successfully execute downstream build and run flows using nix build and nix run to maintain reproducible environments.