From 43cdb7c7473fa57cdc1ea249d9fb1c516b5f06f5 Mon Sep 17 00:00:00 2001 From: Sam Rolfe Date: Fri, 20 Feb 2026 20:26:54 +1100 Subject: [PATCH] Fix react-doctor: add postPatch to generate package-lock.json --- pkgs/react-doctor.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/react-doctor.nix b/pkgs/react-doctor.nix index 6b687c1..ff336d4 100644 --- a/pkgs/react-doctor.nix +++ b/pkgs/react-doctor.nix @@ -6,13 +6,17 @@ buildNpmPackage rec { src = fetchFromGitHub { owner = "millionco"; repo = "react-doctor"; - rev = "v${version}"; + rev = "0.0.1"; hash = "sha256-T8szJcXeqIWmZQU/D4KpeFU1ZXilThL5JBmw2Y0hZkw="; }; npmDepsHash = lib.fakeHash; - npmBuild = "build"; + # CRITICAL: Generate package-lock.json during build + postPatch = '' + cd $sourceRoot + npm install --package-lock-only --no-audit --progress=false + ''; meta = with lib; { description = "Let coding agents diagnose and fix your React code";