czkawka: add versionCheckHook

This commit is contained in:
Gaetan Lepage 2024-10-11 17:10:54 +02:00 committed by Gaétan Lepage
parent 555a42d6d8
commit 963540ad35

View File

@ -17,6 +17,7 @@
testers,
wrapGAppsHook4,
xvfb-run,
versionCheckHook,
}:
let
@ -80,6 +81,13 @@ let
install -Dm444 -t $out/share/metainfo data/com.github.qarmin.czkawka.metainfo.xml
'';
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgram = "${placeholder "out"}/bin/czkawka_cli";
versionCheckProgramArg = [ "--version" ];
doInstallCheck = true;
passthru = {
tests.version = testers.testVersion {
package = self;