From d8fc7deb694c8d024a387f3352283e14ea0a85e6 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Wed, 13 May 2020 13:54:17 +0300 Subject: [PATCH] syncthingtray: test --help in installCheckPhase To spare the need to test this package every time @r-ryantm updates it, make sure it passes this sanity test. --- pkgs/applications/misc/syncthingtray/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/applications/misc/syncthingtray/default.nix b/pkgs/applications/misc/syncthingtray/default.nix index 01d1891dd738..7af90535530e 100644 --- a/pkgs/applications/misc/syncthingtray/default.nix +++ b/pkgs/applications/misc/syncthingtray/default.nix @@ -39,6 +39,12 @@ mkDerivation rec { nativeBuildInputs = [ cmake qttools ]; + # No tests are available by upstream, but we test --help anyway + doInstallCheck = true; + installCheckPhase = '' + $out/bin/syncthingtray --help | grep ${version} + ''; + cmakeFlags = [ # See https://github.com/Martchus/syncthingtray/issues/42 "-DQT_PLUGIN_DIR:STRING=${placeholder "out"}/lib/qt-5"