nodejs: keep the build headers (#35568)

Provide all the development headers to node-gyp
This commit is contained in:
zimbatm 2018-02-27 13:26:16 +00:00 committed by GitHub
parent 3346bdd29b
commit fda4b93cd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = {