mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 18:37:04 +03:00
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:
parent
74bf0fafd5
commit
d8fc7deb69
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user