nodejs: keep the build headers (#35568)

Provide all the development headers to node-gyp
wip/yesman
zimbatm 6 years ago committed by GitHub
parent 3346bdd29b
commit fda4b93cd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      pkgs/development/web/nodejs/nodejs.nix

@ -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…
Cancel
Save