git.iko.soy/typeable/nixpkgs
on master help sign in
nextcloud-client: use cmakeDir and cmakeFlags attrs
commitebb6488e74f17dce5c54348e98797bdda2912650 authorRuben Maher <r@rkm.id.au> dateTue 12 Sep 2017, 09:01 (9 years ago) parenta7637b3
1 file changed+9−3
pkgs/applications/networking/nextcloud-client/default.nix+9−3
pkgs/applications/networking/nextcloud-client/default.nix+9−3
@@ -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";