nodejs: keep the build headers (#35568)
Provide all the development headers to node-gyp
This commit is contained in:
parent
3346bdd29b
commit
fda4b93cd4
|
@ -26,6 +26,11 @@ let
|
|||
*/
|
||||
]) (builtins.attrNames sharedLibDeps);
|
||||
|
||||
copyLibHeaders =
|
||||
map
|
||||
(name: "${getDev sharedLibDeps.${name}}/include/*")
|
||||
(builtins.attrNames sharedLibDeps);
|
||||
|
||||
extraConfigFlags = optionals (!enableNpm) [ "--without-npm" ];
|
||||
in
|
||||
|
||||
|
@ -74,6 +79,9 @@ in
|
|||
mkdir -p $out/share/bash-completion/completions/
|
||||
$out/bin/npm completion > $out/share/bash-completion/completions/npm
|
||||
''}
|
||||
|
||||
# install the missing headers for node-gyp
|
||||
cp -r ${concatStringsSep " " copyLibHeaders} $out/include/node
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
|
Loading…
Reference in a new issue