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