diff options
author | zimbatm <zimbatm@zimbatm.com> | 2018-02-27 13:26:16 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-27 13:26:16 +0000 |
commit | fda4b93cd4fd3775408117c380aab0f33737d30f (patch) | |
tree | 5ec60b62c9410b66437bcf9a4620784c544b843e /pkgs | |
parent | 3346bdd29b7dd05a15a1ac36b4b9f889ac40c397 (diff) | |
download | nixlib-fda4b93cd4fd3775408117c380aab0f33737d30f.tar nixlib-fda4b93cd4fd3775408117c380aab0f33737d30f.tar.gz nixlib-fda4b93cd4fd3775408117c380aab0f33737d30f.tar.bz2 nixlib-fda4b93cd4fd3775408117c380aab0f33737d30f.tar.lz nixlib-fda4b93cd4fd3775408117c380aab0f33737d30f.tar.xz nixlib-fda4b93cd4fd3775408117c380aab0f33737d30f.tar.zst nixlib-fda4b93cd4fd3775408117c380aab0f33737d30f.zip |
nodejs: keep the build headers (#35568)
Provide all the development headers to node-gyp
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/web/nodejs/nodejs.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/web/nodejs/nodejs.nix b/pkgs/development/web/nodejs/nodejs.nix index 98b621e2112f..22eb772da1f9 100644 --- a/pkgs/development/web/nodejs/nodejs.nix +++ b/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 = { |