Commit 79459354 authored by midchildan's avatar midchildan Committed by Yt
Browse files

buildNpmPackages: add missing deependencies

parent c757e9bd
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
{ 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;