qsyncthingtray: allow building with qt 5.8

This commit is contained in:
Peter Hoeg 2017-04-27 12:06:26 +08:00
parent d3bf2afc54
commit e89343dc08
2 changed files with 9 additions and 3 deletions

View File

@ -36,9 +36,14 @@ stdenv.mkDerivation rec {
''; '';
installPhase = let qst = "qsyncthingtray"; in '' installPhase = let qst = "qsyncthingtray"; in ''
runHook preInstall
mkdir -p $out/bin mkdir -p $out/bin
install -m755 QSyncthingTray $out/bin/${qst} install -m755 QSyncthingTray $out/bin/${qst}
ln -s $out/bin/${qst} $out/bin/QSyncthingTray ln -s $out/bin/${qst} $out/bin/QSyncthingTray
wrapQtProgram $out/bin/qsyncthingtray
runHook postInstall
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {
@ -52,6 +57,7 @@ stdenv.mkDerivation rec {
license = licenses.lgpl3; license = licenses.lgpl3;
maintainers = with maintainers; [ zraexy peterhoeg ]; maintainers = with maintainers; [ zraexy peterhoeg ];
platforms = platforms.all; platforms = platforms.all;
broken = builtins.compareVersions qtbase.version "5.7.0" >= 0; # 0.5.7 segfaults when opening the main panel with qt 5.7 but qt 5.8 is OK
broken = builtins.compareVersions qtbase.version "5.7.0" == 0;
}; };
} }

View File

@ -15251,8 +15251,8 @@ with pkgs;
qt = qt4; qt = qt4;
}; };
# 0.5.7 segfaults when opening the main panel with qt 5.7 # 0.5.7 segfaults when opening the main panel with qt 5.7 but qt 5.8 is OK
qsyncthingtray = libsForQt56.callPackage ../applications/misc/qsyncthingtray { }; qsyncthingtray = libsForQt5.callPackage ../applications/misc/qsyncthingtray { };
qsynth = callPackage ../applications/audio/qsynth { }; qsynth = callPackage ../applications/audio/qsynth { };