depot/third_party/nixpkgs/pkgs/servers/code-server/darwin-fsevents.patch
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

11 lines
491 B
Diff

--- ./lib/vscode/node_modules/fsevents/install.js
+++ ./lib/vscode/node_modules/fsevents/install.js
@@ -1,7 +1,3 @@
if (process.platform === 'darwin') {
- var spawn = require('child_process').spawn;
- var args = ['install', '--fallback-to-build'];
- var options = {stdio: 'inherit'};
- var child = spawn(require.resolve('node-pre-gyp/bin/node-pre-gyp'), args, options);
- child.on('close', process.exit);
+ process.stdout.write('fsevents disabled on Darwin by Nix build script\n')
}