qsyncthingtray: fix build

This commit is contained in:
Orivej Desh 2017-11-17 03:05:30 +00:00
parent 031367af2b
commit 37215ff7ab
2 changed files with 17 additions and 0 deletions

View file

@ -20,6 +20,8 @@ mkDerivation rec {
cmakeFlags = lib.optional preferQWebView "-DQST_BUILD_WEBKIT=1";
patches = [ ./qsyncthingtray-0.5.8-qt-5.6.3.patch ];
postPatch = ''
${lib.optionalString stdenv.isLinux ''
substituteInPlace includes/platforms/linux/posixUtils.hpp \
@ -44,6 +46,8 @@ mkDerivation rec {
runHook postInstall
'';
enableParallelBuilding = true;
meta = with lib; {
homepage = https://github.com/sieren/QSyncthingTray/;
description = "A Traybar Application for Syncthing written in C++";

View file

@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b778d09..247b606 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -12,7 +12,7 @@ set(CMAKE_AUTOMOC ON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
-find_package(Qt5 5.6 COMPONENTS Widgets Network PrintSupport)
+find_package(Qt5 5.6 COMPONENTS Widgets Network PrintSupport WebEngineWidgets)
if (NOT Qt5_FOUND)
message(FATAL_ERROR
"Some components of Qt5 not found (see above messages for details. "