···66, libsecret
77, python3
88, pkg-config
99-, nodejs
99+, nodePackages
1010, electron
1111, makeWrapper
1212, makeDesktopItem
···6363 nativeBuildInputs = [
6464 python3
6565 pkg-config
6666+ nodePackages.node-gyp
6667 ];
6768 buildInputs = [
6869 libsecret
···7475 '';
7576 };
7677 };
7777-7878- preBuild = ''
7979- # Set up headers for node-gyp, which is needed to build keytar.
8080- mkdir -p "$HOME/.cache/node-gyp/${nodejs.version}"
8181-8282- # Set up version which node-gyp checks in <https://github.com/nodejs/node-gyp/blob/4937722cf597ccd1953628f3d5e2ab5204280051/lib/install.js#L87-L96> against the version in <https://github.com/nodejs/node-gyp/blob/4937722cf597ccd1953628f3d5e2ab5204280051/package.json#L15>.
8383- echo 9 > "$HOME/.cache/node-gyp/${nodejs.version}/installVersion"
8484-8585- # Link node headers so that node-gyp does not try to download them.
8686- ln -sfv "${nodejs}/include" "$HOME/.cache/node-gyp/${nodejs.version}"
8787- '';
88788979 packageJSON = "${src}/package.json";
9080 yarnLock = ./yarn.lock;