From e6dcff466a41fcb23d0b6be203fa89b8d3efe094 Mon Sep 17 00:00:00 2001 From: Roman Date: Mon, 29 Jun 2026 19:40:58 +0200 Subject: [PATCH] proton-cli: use versionCheckHook --- pkgs/by-name/pr/proton-cli/package.nix | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/pkgs/by-name/pr/proton-cli/package.nix b/pkgs/by-name/pr/proton-cli/package.nix index 62982aafd44b..85117bcc12b2 100644 --- a/pkgs/by-name/pr/proton-cli/package.nix +++ b/pkgs/by-name/pr/proton-cli/package.nix @@ -8,8 +8,7 @@ webkitgtk_4_1, gtk3, nix-update-script, - testers, - proton-cli, + versionCheckHook, }: buildGoModule (finalAttrs: { @@ -62,14 +61,10 @@ buildGoModule (finalAttrs: { --zsh <($out/bin/proton-cli completion zsh) ''; - passthru = { - tests.version = testers.testVersion { - package = proton-cli; - command = "proton-cli --version"; - version = finalAttrs.version; - }; - updateScript = nix-update-script { }; - }; + nativeInstallCheckInputs = [ versionCheckHook ]; + doInstallCheck = true; + + passthru.updateScript = nix-update-script { }; meta = { description = "Unofficial command-line client for the Proton suite (Mail, Drive, Calendar, Contacts, Pass)";