buildNpmPackages: add missing deependencies

This commit is contained in:
midchildan
2023-11-17 07:58:58 +00:00
committed by Yt
parent c757e9bd77
commit 79459354cb
@@ -1,4 +1,10 @@
{ lib, stdenv, fetchNpmDeps, buildPackages, nodejs } @ topLevelArgs:
{ lib
, stdenv
, fetchNpmDeps
, buildPackages
, nodejs
, darwin
} @ topLevelArgs:
{ name ? "${args.pname}-${args.version}"
, src ? null
@@ -54,7 +60,9 @@ in
stdenv.mkDerivation (args // {
inherit npmDeps npmBuildScript;
nativeBuildInputs = nativeBuildInputs ++ [ nodejs npmConfigHook npmBuildHook npmInstallHook ];
nativeBuildInputs = nativeBuildInputs
++ [ nodejs npmConfigHook npmBuildHook npmInstallHook nodejs.python ]
++ lib.optionals stdenv.isDarwin [ darwin.cctools ];
buildInputs = buildInputs ++ [ nodejs ];
strictDeps = true;