void-packages/srcpkgs/chromium/patches/chromium-system-nodejs.patch

21 lines
740 B
Diff

--- a/third_party/node/node.py
+++ b/third_party/node/node.py
@@ -13,11 +13,12 @@
def GetBinaryPath():
darwin_name = ('node-darwin-arm64' if platform.machine() == 'arm64' else
'node-darwin-x64')
- return os_path.join(os_path.dirname(__file__), *{
- 'Darwin': ('mac', darwin_name, 'bin', 'node'),
- 'Linux': ('linux', 'node-linux-x64', 'bin', 'node'),
- 'Windows': ('win', 'node.exe'),
- }[platform.system()])
+ #return os_path.join(os_path.dirname(__file__), *{
+ # 'Darwin': ('mac', darwin_name, 'bin', 'node'),
+ # 'Linux': ('linux', 'node-linux-x64', 'bin', 'node'),
+ # 'Windows': ('win', 'node.exe'),
+ #}[platform.system()])
+ return "/usr/bin/node"
def RunNode(cmd_parts, stdout=None):