diff options
author | Ruben Maher <r@rkm.id.au> | 2017-09-12 09:01:41 +0930 |
---|---|---|
committer | Ruben Maher <r@rkm.id.au> | 2017-09-14 08:42:55 +0930 |
commit | ebb6488e74f17dce5c54348e98797bdda2912650 (patch) | |
tree | 13b3255c5afa7e1b1683c79ac6c0dd8fe772d478 | |
parent | a7637b37955f1beacfe6c0b153fb11e086bb4762 (diff) |
nextcloud-client: use cmakeDir and cmakeFlags attrs
-rw-r--r-- | pkgs/applications/networking/nextcloud-client/default.nix | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/pkgs/applications/networking/nextcloud-client/default.nix b/pkgs/applications/networking/nextcloud-client/default.nix index d369ec63a9481..a3dce871c4bb8 100644 --- a/pkgs/applications/networking/nextcloud-client/default.nix +++ b/pkgs/applications/networking/nextcloud-client/default.nix @@ -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"; |