Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.0 KiB
Nix
Raw Permalink Normal View History

2025-04-20 20:14:13 +02:00
{
lib,
buildNpmPackage,
fetchFromGitHub,
fetchurl,
nix-update-script,
versionCheckHook,
}:
buildNpmPackage (finalAttrs: {
pname = "node-core-utils";
2025-08-12 11:49:54 +00:00
version = "5.15.0";
2025-04-20 20:14:13 +02:00
src = fetchFromGitHub {
owner = "nodejs";
repo = "node-core-utils";
tag = "v${finalAttrs.version}";
2025-08-12 11:49:54 +00:00
hash = "sha256-yY3EGSBdMpvUIq8UgeEcAm1RIaaNtZxCVp6TlycYjoY=";
2025-04-20 20:14:13 +02:00
};
2025-08-12 11:49:54 +00:00
npmDepsHash = "sha256-VIkJHEGlJqweNVkx3WfLMiDOQRSPtwpJBfJ3vKHv4YM=";
2025-04-20 20:14:13 +02:00
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 ];
};
})