7e47f3658e
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
35 lines
821 B
Nix
35 lines
821 B
Nix
{
|
|
lib,
|
|
buildNpmPackage,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "zx";
|
|
version = "8.1.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = "zx";
|
|
rev = version;
|
|
hash = "sha256-d/U37QWC6e41P9GuohpWjP0MNZCzHbxFMBBASpIKpQk=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-2v8pGIB5W2jgjsJPKBjymAv2rzq9judVdYZexohAclo=";
|
|
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
doInstallCheck = true;
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Tool for writing scripts using JavaScript";
|
|
homepage = "https://github.com/google/zx";
|
|
changelog = "https://github.com/google/zx/releases/tag/${version}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ jlbribeiro ];
|
|
mainProgram = "zx";
|
|
};
|
|
}
|