depot/pkgs/by-name/no/node-pre-gyp/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

35 lines
858 B
Nix

{
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 ];
};
}