2019-08-23 20:54:41 +00:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
2022-04-16 00:35:15 +00:00
|
|
|
, extra-cmake-modules
|
2019-08-23 20:54:41 +00:00
|
|
|
, inotify-tools
|
2022-04-16 00:35:27 +00:00
|
|
|
, installShellFiles
|
2019-04-06 09:53:39 +00:00
|
|
|
, libcloudproviders
|
2022-05-06 14:19:32 +00:00
|
|
|
, librsvg
|
2019-08-23 20:54:41 +00:00
|
|
|
, libsecret
|
|
|
|
, openssl
|
|
|
|
, pcre
|
2021-01-17 02:09:27 +00:00
|
|
|
, pkg-config
|
2019-08-23 20:54:41 +00:00
|
|
|
, qtbase
|
|
|
|
, qtkeychain
|
|
|
|
, qttools
|
|
|
|
, qtwebengine
|
2021-02-19 22:53:17 +00:00
|
|
|
, qtwebsockets
|
2020-08-20 10:41:44 +00:00
|
|
|
, qtquickcontrols2
|
|
|
|
, qtgraphicaleffects
|
2022-04-16 00:35:15 +00:00
|
|
|
, plasma5Packages
|
2022-04-16 00:35:27 +00:00
|
|
|
, sphinx
|
2019-08-23 20:54:41 +00:00
|
|
|
, sqlite
|
2022-02-26 18:10:06 +00:00
|
|
|
, xdg-utils
|
2018-11-23 07:31:31 +00:00
|
|
|
}:
|
2017-08-28 20:33:51 +00:00
|
|
|
|
2019-08-22 22:24:37 +00:00
|
|
|
mkDerivation rec {
|
2019-08-23 20:11:17 +00:00
|
|
|
pname = "nextcloud-client";
|
2023-03-31 17:43:53 +00:00
|
|
|
version = "3.8.0";
|
2017-08-28 20:33:51 +00:00
|
|
|
|
2022-04-16 03:13:51 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2019-08-23 20:11:17 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nextcloud";
|
|
|
|
repo = "desktop";
|
|
|
|
rev = "v${version}";
|
2023-03-31 17:43:53 +00:00
|
|
|
sha256 = "sha256-kwSETOz/0/LMypbTmwvMMrGzZdquBjkXfoSrLgTfPiQ=";
|
2017-08-28 20:33:51 +00:00
|
|
|
};
|
|
|
|
|
2019-08-22 22:24:37 +00:00
|
|
|
patches = [
|
2021-02-19 22:53:17 +00:00
|
|
|
# Explicitly move dbus configuration files to the store path rather than `/etc/dbus-1/services`.
|
2019-08-22 22:24:37 +00:00
|
|
|
./0001-Explicitly-copy-dbus-files-into-the-store-dir.patch
|
2021-10-21 16:19:24 +00:00
|
|
|
./0001-When-creating-the-autostart-entry-do-not-use-an-abso.patch
|
2019-08-22 22:24:37 +00:00
|
|
|
];
|
|
|
|
|
2022-04-16 02:43:58 +00:00
|
|
|
postPatch = ''
|
|
|
|
for file in src/libsync/vfs/*/CMakeLists.txt; do
|
|
|
|
substituteInPlace $file \
|
|
|
|
--replace "PLUGINDIR" "KDE_INSTALL_PLUGINDIR"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2019-08-23 20:54:41 +00:00
|
|
|
nativeBuildInputs = [
|
2021-01-17 02:09:27 +00:00
|
|
|
pkg-config
|
2019-08-23 20:54:41 +00:00
|
|
|
cmake
|
2022-05-06 12:00:13 +00:00
|
|
|
extra-cmake-modules
|
2022-05-06 14:19:32 +00:00
|
|
|
librsvg
|
2022-04-16 00:35:27 +00:00
|
|
|
sphinx
|
2019-08-23 20:54:41 +00:00
|
|
|
];
|
2017-09-12 23:29:16 +00:00
|
|
|
|
2019-08-23 20:54:41 +00:00
|
|
|
buildInputs = [
|
|
|
|
inotify-tools
|
|
|
|
libcloudproviders
|
2021-02-19 22:53:17 +00:00
|
|
|
libsecret
|
2019-08-23 20:54:41 +00:00
|
|
|
openssl
|
|
|
|
pcre
|
2022-04-16 00:35:15 +00:00
|
|
|
plasma5Packages.kio
|
2019-08-23 20:54:41 +00:00
|
|
|
qtbase
|
|
|
|
qtkeychain
|
|
|
|
qttools
|
|
|
|
qtwebengine
|
2020-08-20 10:41:44 +00:00
|
|
|
qtquickcontrols2
|
|
|
|
qtgraphicaleffects
|
2021-02-19 22:53:17 +00:00
|
|
|
qtwebsockets
|
2019-08-23 20:54:41 +00:00
|
|
|
sqlite
|
|
|
|
];
|
2017-08-28 20:33:51 +00:00
|
|
|
|
2021-03-15 13:01:26 +00:00
|
|
|
qtWrapperArgs = [
|
|
|
|
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libsecret ]}"
|
2022-07-11 23:23:52 +00:00
|
|
|
# make xdg-open overrideable at runtime
|
|
|
|
"--suffix PATH : ${lib.makeBinPath [ xdg-utils ]}"
|
2021-03-15 13:01:26 +00:00
|
|
|
];
|
|
|
|
|
2019-08-23 20:11:17 +00:00
|
|
|
cmakeFlags = [
|
2022-12-09 19:02:50 +00:00
|
|
|
"-DBUILD_UPDATER=off"
|
2019-08-23 20:11:17 +00:00
|
|
|
"-DCMAKE_INSTALL_LIBDIR=lib" # expected to be prefix-relative by build code setting RPATH
|
2019-12-08 03:56:19 +00:00
|
|
|
"-DNO_SHIBBOLETH=1" # allows to compile without qtwebkit
|
2019-08-23 20:11:17 +00:00
|
|
|
];
|
2017-09-12 23:29:16 +00:00
|
|
|
|
2022-04-16 00:35:27 +00:00
|
|
|
postBuild = ''
|
|
|
|
make doc-man
|
|
|
|
'';
|
|
|
|
|
2019-08-22 22:24:37 +00:00
|
|
|
meta = with lib; {
|
2017-08-28 20:33:51 +00:00
|
|
|
description = "Nextcloud themed desktop client";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://nextcloud.com";
|
2021-02-19 22:53:17 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2022-04-28 20:26:29 +00:00
|
|
|
maintainers = with maintainers; [ kranzes SuperSandro2000 ];
|
2018-03-11 06:01:25 +00:00
|
|
|
platforms = platforms.linux;
|
2022-05-25 10:02:40 +00:00
|
|
|
mainProgram = "nextcloud";
|
2017-08-28 20:33:51 +00:00
|
|
|
};
|
|
|
|
}
|