buildNodePackage: enable strictDeps, unbreak some packages on Darwin (#362151)

This commit is contained in:
Arne Keller
2025-05-20 09:22:55 +02:00
committed by GitHub
+7 -6
View File
@@ -540,16 +540,17 @@ let
in
stdenv.mkDerivation (
{
name = "${name}${if version == null then "" else "-${version}"}";
name = name + lib.optionalString (version != null) "-${version}";
strictDeps = true;
buildInputs =
[
tarWrapper
python
nodejs
]
[ tarWrapper ]
++ lib.optional (stdenv.hostPlatform.isLinux) pkgs.util-linux
++ lib.optional (stdenv.hostPlatform.isDarwin) libtool
++ buildInputs;
propagatedNativeBuildInputs = [
nodejs
python
];
inherit nodejs;