aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/web/nodejs/bypass-xcodebuild.diff
diff options
context:
space:
mode:
authorMx Kookie <kookie@spacekookie.de>2020-12-09 18:55:19 +0000
committerMx Kookie <kookie@spacekookie.de>2020-12-09 18:55:19 +0000
commit80d90d9b204f7c17912740f9f414fe5d59f293ba (patch)
tree5f2065a06e724270610760d59d01c6888b375a46 /infra/libkookie/nixpkgs/pkgs/development/web/nodejs/bypass-xcodebuild.diff
parent3a31a84c7d3e589035ad08499206aac44a81f424 (diff)
parent83cbad92d73216bb0d9187c56cce0b91f9121d5a (diff)
Merge commit '83cbad92d73216bb0d9187c56cce0b91f9121d5a' into main
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/web/nodejs/bypass-xcodebuild.diff')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/web/nodejs/bypass-xcodebuild.diff28
1 files changed, 28 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/web/nodejs/bypass-xcodebuild.diff b/infra/libkookie/nixpkgs/pkgs/development/web/nodejs/bypass-xcodebuild.diff
new file mode 100644
index 000000000000..5c900dd2143f
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/web/nodejs/bypass-xcodebuild.diff
@@ -0,0 +1,28 @@
+diff -Naur node-v12.18.4/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py node-v12.18.4-new/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py
+--- node-v12.18.4/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py 2020-09-15 09:08:46.000000000 +0200
++++ node-v12.18.4-new/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py 2020-12-03 16:55:43.781860687 +0100
+@@ -436,7 +436,14 @@
+ # Since the CLT has no SDK paths anyway, returning None is the
+ # most sensible route and should still do the right thing.
+ try:
+- return GetStdoutQuiet(['xcodebuild', '-version', '-sdk', sdk, infoitem])
++ # Return fake data that xcodebuild would normally return
++
++ xcodedata = {
++ "Path": "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk",
++ "ProductBuildVersion": "19A547",
++ "ProductVersion": "10.15"
++ }
++ return xcodedata[infoitem]
+ except GypError:
+ pass
+
+@@ -1271,7 +1278,7 @@
+ version = ""
+ build = ""
+ try:
+- version_list = GetStdoutQuiet(['xcodebuild', '-version']).splitlines()
++ version_list = []
+ # In some circumstances xcodebuild exits 0 but doesn't return
+ # the right results; for example, a user on 10.7 or 10.8 with
+ # a bogus path set via xcode-select