Skip to content

Commit

Permalink
qsyncthingtray: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
orivej committed Nov 17, 2017
1 parent 031367a commit 37215ff
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/applications/misc/qsyncthingtray/default.nix
Expand Up @@ -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 \
Expand All @@ -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++";
Expand Down
@@ -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. "

0 comments on commit 37215ff

Please sign in to comment.