3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/nextcloud-client/default.nix

80 lines
1.6 KiB
Nix
Raw Normal View History

2019-08-23 21:54:41 +01:00
{ lib
, mkDerivation
, fetchFromGitHub
, cmake
, inotify-tools
, libcloudproviders
2019-08-23 21:54:41 +01:00
, libsecret
, openssl
, pcre
, pkg-config
2019-08-23 21:54:41 +01:00
, qtbase
, qtkeychain
, qttools
, qtwebengine
, qtwebsockets
2020-08-20 11:41:44 +01:00
, qtquickcontrols2
, qtgraphicaleffects
2019-08-23 21:54:41 +01:00
, sqlite
, inkscape
}:
mkDerivation rec {
pname = "nextcloud-client";
2021-10-28 19:01:34 +01:00
version = "3.3.6";
src = fetchFromGitHub {
owner = "nextcloud";
repo = "desktop";
rev = "v${version}";
2021-10-28 19:01:34 +01:00
sha256 = "sha256-HhFm8rIsDaV4QmvHplbj49gf1vYCZyBl8WH5bvRHT7I=";
};
patches = [
# Explicitly move dbus configuration files to the store path rather than `/etc/dbus-1/services`.
./0001-Explicitly-copy-dbus-files-into-the-store-dir.patch
./0001-When-creating-the-autostart-entry-do-not-use-an-abso.patch
];
2019-08-23 21:54:41 +01:00
nativeBuildInputs = [
pkg-config
2019-08-23 21:54:41 +01:00
cmake
inkscape
2019-08-23 21:54:41 +01:00
];
2019-08-23 21:54:41 +01:00
buildInputs = [
inotify-tools
libcloudproviders
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
qtwebsockets
2019-08-23 21:54:41 +01:00
sqlite
];
qtWrapperArgs = [
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libsecret ]}"
# See also: https://bugreports.qt.io/browse/QTBUG-85967
"--set QML_DISABLE_DISK_CACHE 1"
];
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";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ caugner kranzes ];
platforms = platforms.linux;
};
}