Merge pull request #168866 from SuperSandro2000/nextcloud-client

nextcloud-client: build dolphin plugin, man pages, fix vfs support
This commit is contained in:
Sandro 2022-04-16 23:00:41 +02:00 committed by GitHub
commit 78f1e7248b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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";