star: refactor testers.testVersion to versionCheckHook

+6 -6
+6 -6
pkgs/by-name/st/star/package.nix
··· 5 5 xxd, 6 6 zlib, 7 7 llvmPackages, 8 - star, 9 - testers, 8 + versionCheckHook, 10 9 nix-update-script, 11 10 }: 12 11 ··· 50 49 runHook postInstall 51 50 ''; 52 51 53 - passthru.tests.version = testers.testVersion { 54 - package = star; 55 - command = "STAR --version"; 56 - }; 52 + nativeInstallCheckInputs = [ versionCheckHook ]; 53 + versionCheckProgram = "${placeholder "out"}/bin/STAR"; 54 + versionCheckProgramArg = "--version"; 55 + doInstallCheck = true; 57 56 58 57 passthru.updateScript = nix-update-script { }; 59 58 ··· 63 62 STAR (Spliced Transcripts Alignment to a Reference) is a fast RNA-seq 64 63 read mapper, with support for splice-junction and fusion read detection. 65 64 ''; 65 + mainProgram = "STAR"; 66 66 homepage = "https://github.com/alexdobin/STAR"; 67 67 license = licenses.gpl3Plus; 68 68 platforms = platforms.unix;