Skip to content

Commit

Permalink
nodejs: keep the build headers (#35568)
Browse files Browse the repository at this point in the history
Provide all the development headers to node-gyp
  • Loading branch information
zimbatm committed Feb 27, 2018
1 parent 3346bdd commit fda4b93
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkgs/development/web/nodejs/nodejs.nix
Expand Up @@ -26,6 +26,11 @@ let
*/
]) (builtins.attrNames sharedLibDeps);

copyLibHeaders =
map
(name: "${getDev sharedLibDeps.${name}}/include/*")
(builtins.attrNames sharedLibDeps);

extraConfigFlags = optionals (!enableNpm) [ "--without-npm" ];
in

Expand Down Expand Up @@ -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 = {
Expand Down

0 comments on commit fda4b93

Please sign in to comment.