8 (buildNpmPackage.override { inherit nodejs; }) rec {
12 src = fetchFromGitHub {
15 rev = "refs/tags/v${version}";
16 hash = "sha256-AxyGE86nuU9VkbLLR/8GKM6bcTgayYodQ0mWiQhQtA0=";
19 npmDepsHash = "sha256-LCm1gF7GfjT13k3fe1A+DNNwP48OtFVbYgwCCLH3eHA=";
22 ln -s ${./package-lock.json} package-lock.json
27 # Teach node-gyp to use nodejs headers locally rather that download them form https://nodejs.org.
28 # This is important when build nodejs packages in sandbox.
29 makeWrapperArgs = [ "--set npm_config_nodedir ${nodejs}" ];
31 passthru.updateScript = ./update.sh;
34 changelog = "https://github.com/nodejs/node-gyp/blob/${src.rev}/CHANGELOG.md";
35 description = "Node.js native addon build tool";
36 homepage = "https://github.com/nodejs/node-gyp";
37 license = lib.licenses.mit;
38 mainProgram = "node-gyp";
39 maintainers = with lib.maintainers; [ dotlambda ];