2019-08-23 21:54:41 +01:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, inotify-tools
|
2019-04-06 10:53:39 +01:00
|
|
|
, libcloudproviders
|
2019-08-23 21:54:41 +01:00
|
|
|
, libsecret
|
|
|
|
, openssl
|
|
|
|
, pcre
|
2021-01-17 02:09:27 +00:00
|
|
|
, pkg-config
|
2019-08-23 21:54:41 +01:00
|
|
|
, qtbase
|
|
|
|
, qtkeychain
|
|
|
|
, qttools
|
|
|
|
, qtwebengine
|
2021-02-19 22:53:17 +00:00
|
|
|
, qtwebsockets
|
2020-08-20 11:41:44 +01:00
|
|
|
, qtquickcontrols2
|
|
|
|
, qtgraphicaleffects
|
2019-08-23 21:54:41 +01:00
|
|
|
, sqlite
|
2021-06-26 17:50:01 +01:00
|
|
|
, inkscape
|
2018-11-23 07:31:31 +00:00
|
|
|
}:
|
2017-08-28 21:33:51 +01:00
|
|
|
|
2019-08-22 23:24:37 +01:00
|
|
|
mkDerivation rec {
|
2019-08-23 21:11:17 +01:00
|
|
|
pname = "nextcloud-client";
|
2021-12-20 17:26:04 +00:00
|
|
|
version = "3.4.1";
|
2017-08-28 21:33:51 +01:00
|
|
|
|
2019-08-23 21:11:17 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nextcloud";
|
|
|
|
repo = "desktop";
|
|
|
|
rev = "v${version}";
|
2021-12-20 17:26:04 +00:00
|
|
|
sha256 = "sha256-1fUk4PUFkWcLOvrYvM+K+ZarUSeq/JtDU2bHHPoAoC8=";
|
2017-08-28 21:33:51 +01:00
|
|
|
};
|
|
|
|
|
2019-08-22 23:24:37 +01: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 23:24:37 +01:00
|
|
|
./0001-Explicitly-copy-dbus-files-into-the-store-dir.patch
|
2021-10-21 17:19:24 +01:00
|
|
|
./0001-When-creating-the-autostart-entry-do-not-use-an-abso.patch
|
2019-08-22 23:24:37 +01:00
|
|
|
];
|
|
|
|
|
2019-08-23 21:54:41 +01:00
|
|
|
nativeBuildInputs = [
|
2021-01-17 02:09:27 +00:00
|
|
|
pkg-config
|
2019-08-23 21:54:41 +01:00
|
|
|
cmake
|
2021-06-26 17:50:01 +01:00
|
|
|
inkscape
|
2019-08-23 21:54:41 +01:00
|
|
|
];
|
2017-09-13 00:29:16 +01:00
|
|
|
|
2019-08-23 21:54:41 +01:00
|
|
|
buildInputs = [
|
|
|
|
inotify-tools
|
|
|
|
libcloudproviders
|
2021-02-19 22:53:17 +00:00
|
|
|
libsecret
|
2019-08-23 21:54:41 +01:00
|
|
|
openssl
|
|
|
|
pcre
|
|
|
|
qtbase
|
|
|
|
qtkeychain
|
|
|
|
qttools
|
|
|
|
qtwebengine
|
2020-08-20 11:41:44 +01:00
|
|
|
qtquickcontrols2
|
|
|
|
qtgraphicaleffects
|
2021-02-19 22:53:17 +00:00
|
|
|
qtwebsockets
|
2019-08-23 21:54:41 +01:00
|
|
|
sqlite
|
|
|
|
];
|
2017-08-28 21:33:51 +01:00
|
|
|
|
2021-03-15 13:01:26 +00:00
|
|
|
qtWrapperArgs = [
|
|
|
|
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libsecret ]}"
|
2021-10-28 18:53:57 +01:00
|
|
|
# See also: https://bugreports.qt.io/browse/QTBUG-85967
|
|
|
|
"--set QML_DISABLE_DISK_CACHE 1"
|
2021-03-15 13:01:26 +00:00
|
|
|
];
|
|
|
|
|
2019-08-23 21:11:17 +01:00
|
|
|
cmakeFlags = [
|
|
|
|
"-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 21:11:17 +01:00
|
|
|
];
|
2017-09-13 00:29:16 +01:00
|
|
|
|
2019-08-22 23:24:37 +01:00
|
|
|
meta = with lib; {
|
2017-08-28 21:33:51 +01:00
|
|
|
description = "Nextcloud themed desktop client";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://nextcloud.com";
|
2021-02-19 22:53:17 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2021-11-15 14:13:48 +00:00
|
|
|
maintainers = with maintainers; [ kranzes ];
|
2018-03-11 06:01:25 +00:00
|
|
|
platforms = platforms.linux;
|
2017-08-28 21:33:51 +01:00
|
|
|
};
|
|
|
|
}
|