Skip to content
Back to skills

Nix Typescript

ASecurity

pnpm + Nix build conventions. Covers fetchPnpmDeps hash management and dependency workflow.

  • 11 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 6, 2026
developmenttypescriptgo

Works with

  • cli

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned October 6, 2026

npx -y skills add juspay/skills --skill nix-typescript --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Nix Typescript?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Nix Typescript
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/juspay-nix-typescript-skills/badge)](https://www.skillsdirectory.com/skills/juspay-nix-typescript-skills)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: nix-typescript
description: pnpm + Nix build conventions. Covers fetchPnpmDeps hash management and dependency workflow.
---

# TypeScript + Nix (pnpm)

## Dependency hash management

`nix/modules/typescript.nix` uses `fetchPnpmDeps` with a pinned hash. When `pnpm-lock.yaml` changes (via `pnpm add/remove/update`), this hash goes stale and `nix build` fails.

### Fix recipe

1. Run `nix build 2>&1` — it fails with a hash mismatch
2. Extract the correct hash from the `got: sha256-...` line in the error
3. Update the `hash = "sha256-..."` line in `nix/modules/typescript.nix`

### Parallelization

**Run the hash fix in background immediately after `pnpm-lock.yaml` changes.** Don't wait until end of session — kick it off as soon as the lock file is modified, then continue coding. The `nix build` takes minutes; doing it in background avoids blocking other work.

## Build

- `nix build` — full production build (client + server bundle)
- `nix run` — build and run
- Client is built with `pnpm --filter kolu-client build` (Vite)
- Server runs via `tsx` (TypeScript execution without compile step)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…