nixpkgs/pkgs/applications/networking/nextcloud-client/default.nix

71 lines
1.3 KiB
Nix
Raw Normal View History

2019-08-23 22:54:41 +02:00
{ lib
, mkDerivation
, fetchFromGitHub
, cmake
, inotify-tools
, libcloudproviders
2019-08-23 22:54:41 +02:00
, libsecret
, openssl
, pcre
, pkgconfig
, qtbase
, qtkeychain
, qttools
, qtwebengine
2020-08-20 12:41:44 +02:00
, qtquickcontrols2
, qtgraphicaleffects
2019-08-23 22:54:41 +02:00
, sqlite
}:
mkDerivation rec {
pname = "nextcloud-client";
version = "3.0.2";
src = fetchFromGitHub {
owner = "nextcloud";
repo = "desktop";
rev = "v${version}";
sha256 = "ROzaiRa9Odq4lXuHL7nbE0S49d0wxmDgm01qI1WM+WM=";
};
patches = [
./0001-Explicitly-copy-dbus-files-into-the-store-dir.patch
];
2019-08-23 22:54:41 +02:00
nativeBuildInputs = [
pkgconfig
cmake
];
2019-08-23 22:54:41 +02:00
buildInputs = [
inotify-tools
libcloudproviders
openssl
pcre
qtbase
qtkeychain
qttools
qtwebengine
2020-08-20 12:41:44 +02:00
qtquickcontrols2
qtgraphicaleffects
2019-08-23 22:54:41 +02:00
sqlite
];
qtWrapperArgs = [
2019-08-23 22:54:41 +02:00
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libsecret ]}"
];
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.gpl2;
maintainers = with maintainers; [ caugner ma27 ];
platforms = platforms.linux;
};
}