buildNpmPackage: pass down patchFlags to fetchNpmDeps

`fetchNpmDeps` works from the exact same source tree, thus `patchFlags`
must be respected so that any patches get applied correctly.

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2024-10-23 21:28:12 +02:00
parent 4033dced94
commit f52c685f97
No known key found for this signature in database
GPG Key ID: 73D5E7FDEE3DE49A

View File

@ -13,6 +13,7 @@
, prePatch ? ""
, patches ? [ ]
, postPatch ? ""
, patchFlags ? []
, nativeBuildInputs ? [ ]
, buildInputs ? [ ]
# The output hash of the dependencies for this project.
@ -45,7 +46,7 @@
, npmWorkspace ? null
, nodejs ? topLevelArgs.nodejs
, npmDeps ? fetchNpmDeps {
inherit forceGitDeps forceEmptyCache src srcs sourceRoot prePatch patches postPatch;
inherit forceGitDeps forceEmptyCache src srcs sourceRoot prePatch patches postPatch patchFlags;
name = "${name}-npm-deps";
hash = npmDepsHash;
}