{ 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"; }; }