mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
node-pre-gyp: init at 1.0.11
This commit is contained in:
parent
fb89aa5757
commit
17cc69fdd6
1 changed files with 35 additions and 0 deletions
35
pkgs/by-name/no/node-pre-gyp/package.nix
Normal file
35
pkgs/by-name/no/node-pre-gyp/package.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue