2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, inotify-tools
|
|
|
|
, libcloudproviders
|
|
|
|
, libsecret
|
|
|
|
, openssl
|
|
|
|
, pcre
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, qtbase
|
|
|
|
, qtkeychain
|
|
|
|
, qttools
|
|
|
|
, qtwebengine
|
2021-02-24 18:30:23 +00:00
|
|
|
, qtwebsockets
|
2020-10-07 09:15:18 +00:00
|
|
|
, qtquickcontrols2
|
|
|
|
, qtgraphicaleffects
|
2020-04-24 23:36:52 +00:00
|
|
|
, sqlite
|
2021-06-28 23:13:55 +00:00
|
|
|
, inkscape
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "nextcloud-client";
|
2021-08-18 13:19:15 +00:00
|
|
|
version = "3.3.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nextcloud";
|
|
|
|
repo = "desktop";
|
|
|
|
rev = "v${version}";
|
2021-08-18 13:19:15 +00:00
|
|
|
sha256 = "sha256-2oX3V84ScUV08/WaWJQPLJIni7KvJa/YBRBTWVdRO2U=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
2021-02-24 18:30:23 +00:00
|
|
|
# Explicitly move dbus configuration files to the store path rather than `/etc/dbus-1/services`.
|
2020-04-24 23:36:52 +00:00
|
|
|
./0001-Explicitly-copy-dbus-files-into-the-store-dir.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
cmake
|
2021-06-28 23:13:55 +00:00
|
|
|
inkscape
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
inotify-tools
|
|
|
|
libcloudproviders
|
2021-02-24 18:30:23 +00:00
|
|
|
libsecret
|
2020-04-24 23:36:52 +00:00
|
|
|
openssl
|
|
|
|
pcre
|
|
|
|
qtbase
|
|
|
|
qtkeychain
|
|
|
|
qttools
|
|
|
|
qtwebengine
|
2020-10-07 09:15:18 +00:00
|
|
|
qtquickcontrols2
|
|
|
|
qtgraphicaleffects
|
2021-02-24 18:30:23 +00:00
|
|
|
qtwebsockets
|
2020-04-24 23:36:52 +00:00
|
|
|
sqlite
|
|
|
|
];
|
|
|
|
|
2021-03-23 19:22:30 +00:00
|
|
|
qtWrapperArgs = [
|
|
|
|
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libsecret ]}"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_INSTALL_LIBDIR=lib" # expected to be prefix-relative by build code setting RPATH
|
|
|
|
"-DNO_SHIBBOLETH=1" # allows to compile without qtwebkit
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Nextcloud themed desktop client";
|
|
|
|
homepage = "https://nextcloud.com";
|
2021-02-24 18:30:23 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2021-08-05 21:33:18 +00:00
|
|
|
maintainers = with maintainers; [ caugner kranzes ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|