Revert "buildNodePackage: enable strictDeps"

This reverts commit e0705250d2, which
broke patching `#!/usr/bin/env node` shebangs.

It also modified a generated file, which would get reverted the next
time node-env.nix is regenerated.

If we want to enable strictDeps for node packages we should update
node2nix instead.
This commit is contained in:
Kira Bruneau
2025-05-20 23:02:23 -04:00
parent 4c9044c411
commit 0bc2923ef7
+6 -7
View File
@@ -540,17 +540,16 @@ let
in
stdenv.mkDerivation (
{
name = name + lib.optionalString (version != null) "-${version}";
strictDeps = true;
name = "${name}${if version == null then "" else "-${version}"}";
buildInputs =
[ tarWrapper ]
[
tarWrapper
python
nodejs
]
++ lib.optional (stdenv.hostPlatform.isLinux) pkgs.util-linux
++ lib.optional (stdenv.hostPlatform.isDarwin) libtool
++ buildInputs;
propagatedNativeBuildInputs = [
nodejs
python
];
inherit nodejs;