nixpkgs/pkgs/applications/networking/nextcloud-client/default.nix
Bryan A. S 4515dfb6a2 nextcloud-client: 3.0.3 -> 3.1.3
Updated to the latest version and add qtwebsockets for cmake errors and libsecret for ld errors

Remove qtWrapperArgs for libsecret

Comment patch and fix license

Signed-off-by: Bryan A. S <bryanasdev000@gmail.com>
2021-02-22 11:53:32 -03:00

71 lines
1.3 KiB
Nix

{ lib
, mkDerivation
, fetchFromGitHub
, cmake
, inotify-tools
, libcloudproviders
, libsecret
, openssl
, pcre
, pkg-config
, qtbase
, qtkeychain
, qttools
, qtwebengine
, qtwebsockets
, qtquickcontrols2
, qtgraphicaleffects
, sqlite
}:
mkDerivation rec {
pname = "nextcloud-client";
version = "3.1.3";
src = fetchFromGitHub {
owner = "nextcloud";
repo = "desktop";
rev = "v${version}";
sha256 = "sha256-8Ql6tOvWOjAvMJA87WlT9TbpnbciBsjDxRuYlMVi/m8=";
};
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
];
nativeBuildInputs = [
pkg-config
cmake
];
buildInputs = [
inotify-tools
libcloudproviders
libsecret
openssl
pcre
qtbase
qtkeychain
qttools
qtwebengine
qtquickcontrols2
qtgraphicaleffects
qtwebsockets
sqlite
];
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 ];
platforms = platforms.linux;
};
}