From 3590df4d9fba7f8dc45b4c60486fd82880b21f16 Mon Sep 17 00:00:00 2001 From: Christoph Heiss Date: Fri, 28 Mar 2025 08:47:59 +0100 Subject: [PATCH] yarr: switch to versionCheckHook Signed-off-by: Christoph Heiss --- pkgs/by-name/ya/yarr/package.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/ya/yarr/package.nix b/pkgs/by-name/ya/yarr/package.nix index 85a5b0f95274..1329b2556e5a 100644 --- a/pkgs/by-name/ya/yarr/package.nix +++ b/pkgs/by-name/ya/yarr/package.nix @@ -2,8 +2,7 @@ lib, buildGoModule, fetchFromGitHub, - testers, - yarr, + versionCheckHook, }: buildGoModule rec { @@ -31,11 +30,9 @@ buildGoModule rec { "sqlite_json" ]; - - passthru.tests.version = testers.testVersion { - package = yarr; - version = "v${version}"; - }; + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + versionCheckProgramArg = "--version"; meta = with lib; { description = "Yet another rss reader";