1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 04:02:10 +00:00

use passthru tests

This commit is contained in:
hakan-demirli 2024-04-18 10:21:18 +03:00
parent 5e14111810
commit 1076af3b62

View file

@ -6,6 +6,7 @@
makeWrapper,
installShellFiles,
setJavaClassPath,
testers,
}:
stdenv.mkDerivation (
finalAttrs: {
@ -37,9 +38,12 @@ stdenv.mkDerivation (
--zsh <($out/bin/${finalAttrs.pname} --zsh)
'';
installCheckPhase = ''
$out/bin/${finalAttrs.pname} --version | grep -q "${finalAttrs.version}"
'';
passthru.tests = {
testVersion = testers.testVersion {
program = "${finalAttrs.pname}";
version = "${finalAttrs.version}";
};
};
meta = with lib; {
description = "Refactoring and linting tool for Scala";