From 7bddadac56d7e7442420af94c9bcf8b494d768a6 Mon Sep 17 00:00:00 2001 From: Tom McLaughlin Date: Wed, 13 Oct 2021 16:51:40 -0600 Subject: [PATCH] Expose preRebuild hook in buildNodeDependencies --- nix/node-env.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nix/node-env.nix b/nix/node-env.nix index d1cc01b..b1452bc 100644 --- a/nix/node-env.nix +++ b/nix/node-env.nix @@ -490,6 +490,7 @@ let , dontNpmInstall ? false , bypassCache ? false , reconstructLock ? false + , preRebuild ? "" , dontStrip ? true , unpackPhase ? "true" , buildPhase ? "true" @@ -507,7 +508,7 @@ let ++ buildInputs; inherit dontStrip; # Stripping may fail a build for some package deployments - inherit dontNpmInstall unpackPhase buildPhase; + inherit dontNpmInstall preRebuild unpackPhase buildPhase; includeScript = includeDependencies { inherit dependencies; }; pinpointDependenciesScript = pinpointDependenciesOfPackage args;