1{
2 lib,
3 buildNpmPackage,
4 fetchFromGitHub,
5 fetchurl,
6 nix-update-script,
7 versionCheckHook,
8}:
9
10buildNpmPackage (finalAttrs: {
11 pname = "node-core-utils";
12 version = "5.15.0";
13
14 src = fetchFromGitHub {
15 owner = "nodejs";
16 repo = "node-core-utils";
17 tag = "v${finalAttrs.version}";
18 hash = "sha256-yY3EGSBdMpvUIq8UgeEcAm1RIaaNtZxCVp6TlycYjoY=";
19 };
20
21 npmDepsHash = "sha256-VIkJHEGlJqweNVkx3WfLMiDOQRSPtwpJBfJ3vKHv4YM=";
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})