From f5e7bb6a36e79757e99d9e7e2e8a706be713fd4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arcadio=20Rubio=20Garc=C3=ADa?= Date: Wed, 9 Jul 2025 20:34:45 +0200 Subject: [PATCH] star: refactor testers.testVersion to versionCheckHook --- pkgs/by-name/st/star/package.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/st/star/package.nix b/pkgs/by-name/st/star/package.nix index 9d3cb06e5a2c..e5e701b9b496 100644 --- a/pkgs/by-name/st/star/package.nix +++ b/pkgs/by-name/st/star/package.nix @@ -5,8 +5,7 @@ xxd, zlib, llvmPackages, - star, - testers, + versionCheckHook, nix-update-script, }: @@ -50,10 +49,10 @@ stdenv.mkDerivation rec { runHook postInstall ''; - passthru.tests.version = testers.testVersion { - package = star; - command = "STAR --version"; - }; + nativeInstallCheckInputs = [ versionCheckHook ]; + versionCheckProgram = "${placeholder "out"}/bin/STAR"; + versionCheckProgramArg = "--version"; + doInstallCheck = true; passthru.updateScript = nix-update-script { }; @@ -63,6 +62,7 @@ stdenv.mkDerivation rec { STAR (Spliced Transcripts Alignment to a Reference) is a fast RNA-seq read mapper, with support for splice-junction and fusion read detection. ''; + mainProgram = "STAR"; homepage = "https://github.com/alexdobin/STAR"; license = licenses.gpl3Plus; platforms = platforms.unix;