nixpkgs/pkgs/servers/code-server/darwin-fsevents.patch
2021-01-27 09:15:00 -08: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')
}