From 17cc69fdd6215817bf7886e80bf63d0efb2df82f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 29 Jul 2024 14:22:09 -0700 Subject: [PATCH] node-pre-gyp: init at 1.0.11 --- pkgs/by-name/no/node-pre-gyp/package.nix | 35 ++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pkgs/by-name/no/node-pre-gyp/package.nix diff --git a/pkgs/by-name/no/node-pre-gyp/package.nix b/pkgs/by-name/no/node-pre-gyp/package.nix new file mode 100644 index 000000000000..79ba4234ff16 --- /dev/null +++ b/pkgs/by-name/no/node-pre-gyp/package.nix @@ -0,0 +1,35 @@ +{ + buildNpmPackage, + fetchFromGitHub, + lib, +}: + +buildNpmPackage rec { + pname = "node-pre-gyp"; + version = "1.0.11"; + + src = fetchFromGitHub { + owner = "mapbox"; + repo = "node-pre-gyp"; + rev = "refs/tags/v${version}"; + hash = "sha256-O0PLEy2bEIrypaC+WyQJI5kfkqBBps029CujBKkzZ6o="; + }; + + npmDepsHash = "sha256-pZEnyovFp+wOz7D73JpNfEsVNkukPe9sGt1oIO8Tvnc="; + + dontNpmBuild = true; + + postInstall = '' + mv $out/bin/@mapbox/node-pre-gyp $out/bin + rmdir $out/bin/@mapbox + ''; + + meta = { + changelog = "https://github.com/mapbox/node-pre-gyp/blob/${src.rev}/CHANGELOG.md"; + description = "Node.js tool for easy binary deployment of C++ addons"; + homepage = "https://github.com/mapbox/node-pre-gyp"; + license = lib.licenses.bsd3; + mainProgram = "node-pre-gyp"; + maintainers = with lib.maintainers; [ dotlambda ]; + }; +}