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.
This commit is contained in:
Doron Behar 2020-05-13 13:54:17 +03:00 committed by Bjørn Forsman
parent 74bf0fafd5
commit d8fc7deb69

View File

@ -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"