node-core-utils: init at 5.14.1 (#400366)

authored by Pol Dellaiera and committed by GitHub ce715867 c569fbf9

+42
+42
pkgs/by-name/no/node-core-utils/package.nix
···
··· 1 + { 2 + lib, 3 + buildNpmPackage, 4 + fetchFromGitHub, 5 + fetchurl, 6 + nix-update-script, 7 + versionCheckHook, 8 + }: 9 + 10 + buildNpmPackage (finalAttrs: { 11 + pname = "node-core-utils"; 12 + version = "5.14.1"; 13 + 14 + src = fetchFromGitHub { 15 + owner = "nodejs"; 16 + repo = "node-core-utils"; 17 + tag = "v${finalAttrs.version}"; 18 + hash = "sha256-F+WMwyMw4cgGevcgi7vUkboXjZmBpPKsTUDvM6NHr0o="; 19 + }; 20 + 21 + npmDepsHash = "sha256-fMWb17t+ARJYsA7DgEBDY3vfbLrrCQiECRy947I90uI="; 22 + 23 + dontNpmBuild = true; 24 + dontNpmPrune = true; 25 + npmInstallFlags = [ "--omit=dev" ]; 26 + 27 + nativeInstallCheckInputs = [ 28 + versionCheckHook 29 + ]; 30 + doInstallCheck = true; 31 + versionCheckProgram = "${placeholder "out"}/bin/git-node"; 32 + 33 + passthru.updateScript = nix-update-script { }; 34 + 35 + meta = { 36 + changelog = "https://github.com/${finalAttrs.src.owner}/${finalAttrs.src.repo}/blob/${finalAttrs.src.tag}/CHANGELOG.md"; 37 + description = "CLI tools for Node.js Core collaborators"; 38 + homepage = "https://github.com/nodejs/node-core-utils"; 39 + license = lib.licenses.mit; 40 + maintainers = with lib.maintainers; [ aduh95 ]; 41 + }; 42 + })