Commit 963540ad authored by Gaetan Lepage's avatar Gaetan Lepage Committed by Gaétan Lepage
Browse files

czkawka: add versionCheckHook

parent 555a42d6
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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;