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);
|
]) (builtins.attrNames sharedLibDeps);
|
||||||
|
|
||||||
|
copyLibHeaders =
|
||||||
|
map
|
||||||
|
(name: "${getDev sharedLibDeps.${name}}/include/*")
|
||||||
|
(builtins.attrNames sharedLibDeps);
|
||||||
|
|
||||||
extraConfigFlags = optionals (!enableNpm) [ "--without-npm" ];
|
extraConfigFlags = optionals (!enableNpm) [ "--without-npm" ];
|
||||||
in
|
in
|
||||||
|
|
||||||
@ -74,6 +79,9 @@ in
|
|||||||
mkdir -p $out/share/bash-completion/completions/
|
mkdir -p $out/share/bash-completion/completions/
|
||||||
$out/bin/npm completion > $out/share/bash-completion/completions/npm
|
$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 = {
|
meta = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user