star: refactor testers.testVersion to versionCheckHook

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