depot/third_party/nixpkgs/pkgs/tools/system/zx/default.nix
Default email 555cd8a8f9 Project import generated by Copybara.
GitOrigin-RevId: 5633bcff0c6162b9e4b5f1264264611e950c8ec7
2024-10-09 18:51:18 +02:00

35 lines
821 B
Nix

{
lib,
buildNpmPackage,
fetchFromGitHub,
nix-update-script,
versionCheckHook,
}:
buildNpmPackage rec {
pname = "zx";
version = "8.1.9";
src = fetchFromGitHub {
owner = "google";
repo = "zx";
rev = version;
hash = "sha256-vy53g6nG/krK1PsfIKEdok67ghf9Jm2xNMmZpU2N+A0=";
};
npmDepsHash = "sha256-bKckzwvJNWDYkF1ZBwB9RpzJAVTIoAjoKK8D3V8RHmQ=";
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";
};
}