Merge pull request #322799 from tie/nodejs-fix-impure-configure

nodejs: fix impure configure phase
This commit is contained in:
Pol Dellaiera
2024-07-05 11:33:05 +02:00
committed by GitHub
+5 -2
View File
@@ -60,8 +60,6 @@ let
NIX_CFLAGS_COMPILE = "-D__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__=101300";
};
CC_host = "cc";
CXX_host = "c++";
depsBuildBuild = [ buildPackages.stdenv.cc openssl libuv zlib icu ];
# NB: technically, we do not need bash in build inputs since all scripts are
@@ -106,6 +104,11 @@ let
dontDisableStatic = true;
configureScript = writeScript "nodejs-configure" ''
export CC_host="$CC_FOR_BUILD" CXX_host="$CXX_FOR_BUILD"
exec ${python.executable} configure.py "$@"
'';
enableParallelBuilding = true;
# Don't allow enabling content addressed conversion as `nodejs`