git.iko.soy/typeable/nixpkgs
on master help sign in
nextcloud-client: fix build after qt updates

Probably necessary after restructuring/updates in #31462

commitcce47a6bf5013b2cb146e70fdb2adadbadcdb118 authorAverell Dalton <averell@rxd4.com> dateMon 20 Nov 2017, 06:57 (9 years ago) parent7484d9c
3 files changed+18−3
pkgs/applications/networking/nextcloud-client/default.nix+5−2 pkgs/applications/networking/nextcloud-client/find-sql.patch+12 pkgs/top-level/all-packages.nix+1−1
pkgs/applications/networking/nextcloud-client/default.nix+5−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchgit, cmake, pkgconfig, qtbase, qtwebkit, qtkeychain, sqlite
1+{ stdenv, fetchgit, cmake, pkgconfig, qtbase, qtwebkit, qtkeychain, qttools, sqlite
22, inotify-tools, withGnomeKeyring ? false, makeWrapper, libgnome_keyring }:
33
44stdenv.mkDerivation rec {
@@ -12,9 +12,12 @@ stdenv.mkDerivation rec {
1212 fetchSubmodules = true;
1313 };
1414
15+ patches = [ ./find-sql.patch ];
16+ patchFlags = "-d client -p1";
17+
1518 nativeBuildInputs = [ pkgconfig cmake ];
1619
17− buildInputs = [ qtbase qtwebkit qtkeychain sqlite ]
20+ buildInputs = [ qtbase qtwebkit qtkeychain qttools sqlite ]
1821 ++ stdenv.lib.optional stdenv.isLinux inotify-tools
1922 ++ stdenv.lib.optional withGnomeKeyring makeWrapper;
2023
pkgs/applications/networking/nextcloud-client/find-sql.patchnew file+12
@@ -0,0 +1,12 @@
1+diff --git a/cmake/modules/QtVersionAbstraction.cmake b/cmake/modules/QtVersionAbstraction.cmake
2+index 5bd853c84..93ddf3cf8 100644
3+--- a/cmake/modules/QtVersionAbstraction.cmake
4++++ b/cmake/modules/QtVersionAbstraction.cmake
5+@@ -17,6 +17,7 @@ if( Qt5Core_FOUND )
6+ message(STATUS "Found Qt5 core, checking for further dependencies...")
7+ find_package(Qt5Network REQUIRED)
8+ find_package(Qt5Xml REQUIRED)
9++ find_package(Qt5Sql REQUIRED)
10+ find_package(Qt5Concurrent REQUIRED)
11+ if(UNIT_TESTING)
12+ find_package(Qt5Test REQUIRED)
pkgs/top-level/all-packages.nix+1−1
@@ -3561,7 +3561,7 @@ with pkgs;
35613561
35623562 nextcloud = callPackage ../servers/nextcloud { };
35633563
3564− nextcloud-client = libsForQt56.callPackage ../applications/networking/nextcloud-client { };
3564+ nextcloud-client = libsForQt5.callPackage ../applications/networking/nextcloud-client { };
35653565
35663566 nextcloud-news-updater = callPackage ../servers/nextcloud/news-updater.nix { };
35673567