nextcloud-client: use cmakeDir and cmakeFlags attrs

gstqt5
Ruben Maher 2017-09-12 09:01:41 +09:30
parent a7637b3795
commit ebb6488e74
1 changed files with 9 additions and 3 deletions

View File

@ -14,9 +14,15 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig cmake ];
buildInputs = [ qtbase qtwebkit qtkeychain sqlite ];
preConfigure = ''
cmakeFlagsArray+=("-UCMAKE_INSTALL_LIBDIR" "-DOEM_THEME_DIR=$(realpath ./nextcloudtheme)" "../client")
'';
dontUseCmakeBuildDir = true;
cmakeDir = "client";
cmakeFlags = [
"-UCMAKE_INSTALL_LIBDIR"
"-DCMAKE_BUILD_TYPE=Release"
"-DOEM_THEME_DIR=${src}/nextcloudtheme"
];
meta = with stdenv.lib; {
description = "Nextcloud themed desktop client";