From f52c685f972760eb1db2b61b0c098cb69baa0958 Mon Sep 17 00:00:00 2001 From: Christoph Heiss Date: Wed, 23 Oct 2024 21:28:12 +0200 Subject: [PATCH] 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 --- pkgs/build-support/node/build-npm-package/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/build-support/node/build-npm-package/default.nix b/pkgs/build-support/node/build-npm-package/default.nix index 52b4f5a30e2a..372124829b09 100644 --- a/pkgs/build-support/node/build-npm-package/default.nix +++ b/pkgs/build-support/node/build-npm-package/default.nix @@ -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; }