@@ -14,9 +14,15 @@ stdenv.mkDerivation rec {
1414 nativeBuildInputs = [ pkgconfig cmake ];
1515 buildInputs = [ qtbase qtwebkit qtkeychain sqlite ];
1616
17− preConfigure = ''
18− cmakeFlagsArray+=("-UCMAKE_INSTALL_LIBDIR" "-DOEM_THEME_DIR=$(realpath ./nextcloudtheme)" "../client")
19− '';
17+ dontUseCmakeBuildDir = true;
18+
19+ cmakeDir = "client";
20+
21+ cmakeFlags = [
22+ "-UCMAKE_INSTALL_LIBDIR"
23+ "-DCMAKE_BUILD_TYPE=Release"
24+ "-DOEM_THEME_DIR=${src}/nextcloudtheme"
25+ ];
2026
2127 meta = with stdenv.lib; {
2228 description = "Nextcloud themed desktop client";