node-core-utils: init at 5.14.1 (#400366)
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
{
|
||||
lib,
|
||||
buildNpmPackage,
|
||||
fetchFromGitHub,
|
||||
fetchurl,
|
||||
nix-update-script,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
buildNpmPackage (finalAttrs: {
|
||||
pname = "node-core-utils";
|
||||
version = "5.14.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nodejs";
|
||||
repo = "node-core-utils";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-F+WMwyMw4cgGevcgi7vUkboXjZmBpPKsTUDvM6NHr0o=";
|
||||
};
|
||||
|
||||
npmDepsHash = "sha256-fMWb17t+ARJYsA7DgEBDY3vfbLrrCQiECRy947I90uI=";
|
||||
|
||||
dontNpmBuild = true;
|
||||
dontNpmPrune = true;
|
||||
npmInstallFlags = [ "--omit=dev" ];
|
||||
|
||||
nativeInstallCheckInputs = [
|
||||
versionCheckHook
|
||||
];
|
||||
doInstallCheck = true;
|
||||
versionCheckProgram = "${placeholder "out"}/bin/git-node";
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/${finalAttrs.src.owner}/${finalAttrs.src.repo}/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
||||
description = "CLI tools for Node.js Core collaborators";
|
||||
homepage = "https://github.com/nodejs/node-core-utils";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ aduh95 ];
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user