···21 };
2223 patches = [
24- # fsevents is needed on Darwin, but its dependency "nan" in the upstream package-lock.json
25- # is too old for the Node 18.x in Nixpkgs.
26- # This patch is generated by checking out the upstream source and running
27- # npm update nan --lockfile-version 1
28- ./update-nan.patch
0029 ];
3031- npmDepsHash = "sha256-mV6rWNf2p2w4H0ESUT0/Ybtx9YEdvO5l2gCvlWFXK+U=";
32 nativeBuildInputs = [
33 node-gyp
34 python3
···43 cp -r build_old/Release build/
44 rm -rf build_old
45 rm -rf build/Release/.deps
046 # Remove a development script to eliminate runtime dependency on node
47 rm node_modules/node-addon-api/tools/conversion.js
00048 '';
4950 doInstallCheck = true;
···21 };
2223 patches = [
24+ # Remove the dependency on "nodemon", which is only needed for interactive
25+ # development. This package depends on fsevents on macOS, which has
26+ # repeatedly caused build problems. This patch is generated by checking out
27+ # the upstream source and removing the "nodemon" line, and then running
28+ #
29+ # npm install --lockfile-version 1
30+ ./remove-nodemon.patch
31 ];
3233+ npmDepsHash = "sha256-GyNUPgLJhdjzbIpld916/l8durIw0aQRHojjSmGgEJE=";
34 nativeBuildInputs = [
35 node-gyp
36 python3
···45 cp -r build_old/Release build/
46 rm -rf build_old
47 rm -rf build/Release/.deps
48+49 # Remove a development script to eliminate runtime dependency on node
50 rm node_modules/node-addon-api/tools/conversion.js
51+52+ # Remove dangling symlinks
53+ rm -rf $out/lib/node_modules/nodehun/node_modules/.bin
54 '';
5556 doInstallCheck = true;