Skip to content

Commit 963540a

Browse files
committed
czkawka: add versionCheckHook
1 parent 555a42d commit 963540a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkgs/by-name/cz/czkawka/package.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
testers,
1818
wrapGAppsHook4,
1919
xvfb-run,
20+
versionCheckHook,
2021
}:
2122

2223
let
@@ -80,6 +81,13 @@ let
8081
install -Dm444 -t $out/share/metainfo data/com.github.qarmin.czkawka.metainfo.xml
8182
'';
8283

84+
nativeInstallCheckInputs = [
85+
versionCheckHook
86+
];
87+
versionCheckProgram = "${placeholder "out"}/bin/czkawka_cli";
88+
versionCheckProgramArg = [ "--version" ];
89+
doInstallCheck = true;
90+
8391
passthru = {
8492
tests.version = testers.testVersion {
8593
package = self;

0 commit comments

Comments
 (0)