git.iko.soy/typeable/nixpkgs
on master help sign in
qsyncthingtray: fix build
commit37215ff7abf75fa5731994119d296ac1346555f1 authorOrivej Desh <orivej@gmx.fr> dateFri 17 Nov 2017, 03:05 (9 years ago) parent031367a
2 files changed+17
pkgs/applications/misc/qsyncthingtray/default.nix+4 pkgs/applications/misc/qsyncthingtray/qsyncthingtray-0.5.8-qt-5.6.3.patch+13
pkgs/applications/misc/qsyncthingtray/default.nix+4
@@ -20,6 +20,8 @@ mkDerivation rec {
2020
2121 cmakeFlags = lib.optional preferQWebView "-DQST_BUILD_WEBKIT=1";
2222
23+ patches = [ ./qsyncthingtray-0.5.8-qt-5.6.3.patch ];
24+
2325 postPatch = ''
2426 ${lib.optionalString stdenv.isLinux ''
2527 substituteInPlace includes/platforms/linux/posixUtils.hpp \
@@ -44,6 +46,8 @@ mkDerivation rec {
4446 runHook postInstall
4547 '';
4648
49+ enableParallelBuilding = true;
50+
4751 meta = with lib; {
4852 homepage = https://github.com/sieren/QSyncthingTray/;
4953 description = "A Traybar Application for Syncthing written in C++";
pkgs/applications/misc/qsyncthingtray/qsyncthingtray-0.5.8-qt-5.6.3.patchnew file+13
@@ -0,0 +1,13 @@
1+diff --git a/CMakeLists.txt b/CMakeLists.txt
2+index b778d09..247b606 100644
3+--- a/CMakeLists.txt
4++++ b/CMakeLists.txt
5+@@ -12,7 +12,7 @@ set(CMAKE_AUTOMOC ON)
6+
7+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
8+
9+-find_package(Qt5 5.6 COMPONENTS Widgets Network PrintSupport)
10++find_package(Qt5 5.6 COMPONENTS Widgets Network PrintSupport WebEngineWidgets)
11+ if (NOT Qt5_FOUND)
12+ message(FATAL_ERROR
13+ "Some components of Qt5 not found (see above messages for details. "