diff --git a/pkgs/applications/networking/nextcloud-client/default.nix b/pkgs/applications/networking/nextcloud-client/default.nix index deac64c903e1..3afdbec0ac54 100644 --- a/pkgs/applications/networking/nextcloud-client/default.nix +++ b/pkgs/applications/networking/nextcloud-client/default.nix @@ -2,7 +2,9 @@ , mkDerivation , fetchFromGitHub , cmake +, extra-cmake-modules , inotify-tools +, installShellFiles , libcloudproviders , libsecret , openssl @@ -15,6 +17,8 @@ , qtwebsockets , qtquickcontrols2 , qtgraphicaleffects +, plasma5Packages +, sphinx , sqlite , inkscape , xdg-utils @@ -24,6 +28,8 @@ mkDerivation rec { pname = "nextcloud-client"; version = "3.4.4"; + outputs = [ "out" "dev" ]; + src = fetchFromGitHub { owner = "nextcloud"; repo = "desktop"; @@ -37,10 +43,19 @@ mkDerivation rec { ./0001-When-creating-the-autostart-entry-do-not-use-an-abso.patch ]; + postPatch = '' + for file in src/libsync/vfs/*/CMakeLists.txt; do + substituteInPlace $file \ + --replace "PLUGINDIR" "KDE_INSTALL_PLUGINDIR" + done + ''; + nativeBuildInputs = [ pkg-config cmake + extra-cmake-modules inkscape + sphinx ]; buildInputs = [ @@ -49,6 +64,7 @@ mkDerivation rec { libsecret openssl pcre + plasma5Packages.kio qtbase qtkeychain qttools @@ -71,6 +87,10 @@ mkDerivation rec { "-DNO_SHIBBOLETH=1" # allows to compile without qtwebkit ]; + postBuild = '' + make doc-man + ''; + meta = with lib; { description = "Nextcloud themed desktop client"; homepage = "https://nextcloud.com";