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