diff options
author | jacereda <jacereda@gmail.com> | 2019-03-15 20:23:50 +0100 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2019-03-15 15:23:50 -0400 |
commit | 412a25e74b35d8d010cceab89bdd5d6a0ff18f70 (patch) | |
tree | caa6decf1b734bf2958420ac54b01c7e878656d5 /pkgs/development/web/nodejs | |
parent | 611266a3562277962c4d81485e7b92b158f54a8b (diff) | |
download | nixlib-412a25e74b35d8d010cceab89bdd5d6a0ff18f70.tar nixlib-412a25e74b35d8d010cceab89bdd5d6a0ff18f70.tar.gz nixlib-412a25e74b35d8d010cceab89bdd5d6a0ff18f70.tar.bz2 nixlib-412a25e74b35d8d010cceab89bdd5d6a0ff18f70.tar.lz nixlib-412a25e74b35d8d010cceab89bdd5d6a0ff18f70.tar.xz nixlib-412a25e74b35d8d010cceab89bdd5d6a0ff18f70.tar.zst nixlib-412a25e74b35d8d010cceab89bdd5d6a0ff18f70.zip |
nodejs: fix gyp errors when building scuttlebot on Darwin (#57632)
* nodejs: fix gyp errors when building scuttlebot * nodejs-slim: fix build on Darwin
Diffstat (limited to 'pkgs/development/web/nodejs')
-rw-r--r-- | pkgs/development/web/nodejs/nodejs.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/web/nodejs/nodejs.nix b/pkgs/development/web/nodejs/nodejs.nix index 0cd80b6cae33..6aaa8db7db18 100644 --- a/pkgs/development/web/nodejs/nodejs.nix +++ b/pkgs/development/web/nodejs/nodejs.nix @@ -72,7 +72,6 @@ in postPatch = '' patchShebangs . - sed -i 's/raise.*No Xcode or CLT version detected.*/version = "7.0.0"/' tools/gyp/pylib/gyp/xcode_emulation.py # fix tests for a in test/parallel/test-child-process-env.js \ @@ -84,6 +83,7 @@ in --replace "/usr/bin/env" "${coreutils}/bin/env" done '' + optionalString stdenv.isDarwin '' + sed -i 's/raise.*No Xcode or CLT version detected.*/version = "7.0.0"/' tools/gyp/pylib/gyp/xcode_emulation.py sed -i -e "s|tr1/type_traits|type_traits|g" \ -e "s|std::tr1|std|" src/util.h ''; @@ -101,6 +101,8 @@ in # install the missing headers for node-gyp cp -r ${concatStringsSep " " copyLibHeaders} $out/include/node + '' + optionalString (stdenv.isDarwin && enableNpm) '' + sed -i 's/raise.*No Xcode or CLT version detected.*/version = "7.0.0"/' $out/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py ''; passthru.updateScript = import ./update.nix { |