star: refactor testers.testVersion to versionCheckHook

This commit is contained in:
Arcadio Rubio García 2025-07-09 20:34:45 +02:00
parent f6ba3fd878
commit f5e7bb6a36

View File

@ -5,8 +5,7 @@
xxd, xxd,
zlib, zlib,
llvmPackages, llvmPackages,
star, versionCheckHook,
testers,
nix-update-script, nix-update-script,
}: }:
@ -50,10 +49,10 @@ stdenv.mkDerivation rec {
runHook postInstall runHook postInstall
''; '';
passthru.tests.version = testers.testVersion { nativeInstallCheckInputs = [ versionCheckHook ];
package = star; versionCheckProgram = "${placeholder "out"}/bin/STAR";
command = "STAR --version"; versionCheckProgramArg = "--version";
}; doInstallCheck = true;
passthru.updateScript = nix-update-script { }; passthru.updateScript = nix-update-script { };
@ -63,6 +62,7 @@ stdenv.mkDerivation rec {
STAR (Spliced Transcripts Alignment to a Reference) is a fast RNA-seq STAR (Spliced Transcripts Alignment to a Reference) is a fast RNA-seq
read mapper, with support for splice-junction and fusion read detection. read mapper, with support for splice-junction and fusion read detection.
''; '';
mainProgram = "STAR";
homepage = "https://github.com/alexdobin/STAR"; homepage = "https://github.com/alexdobin/STAR";
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
platforms = platforms.unix; platforms = platforms.unix;