2019-08-23 22:11:17 +02:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub, cmake, pkgconfig, qtbase, qtwebkit, qtkeychain, qttools, sqlite
|
2019-08-23 17:27:39 +02:00
|
|
|
, inotify-tools, openssl, pcre, qtwebengine, libsecret
|
2019-04-06 11:53:39 +02:00
|
|
|
, libcloudproviders
|
2018-11-23 08:31:31 +01:00
|
|
|
}:
|
2017-08-28 22:33:51 +02:00
|
|
|
|
2019-08-23 00:24:37 +02:00
|
|
|
mkDerivation rec {
|
2019-08-23 22:11:17 +02:00
|
|
|
pname = "nextcloud-client";
|
2019-08-23 00:24:37 +02:00
|
|
|
version = "2.5.3";
|
2017-08-28 22:33:51 +02:00
|
|
|
|
2019-08-23 22:11:17 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nextcloud";
|
|
|
|
repo = "desktop";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1pzlq507fasf2ljf37gkw00qrig4w2r712rsy05zfwlncgcn7fnw";
|
2017-08-28 22:33:51 +02:00
|
|
|
};
|
|
|
|
|
2019-08-23 00:24:37 +02:00
|
|
|
patches = [
|
|
|
|
./0001-Explicitly-copy-dbus-files-into-the-store-dir.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig cmake ];
|
2017-09-13 01:29:16 +02:00
|
|
|
|
2019-08-23 22:11:17 +02:00
|
|
|
buildInputs = [ qtbase qtwebkit qtkeychain qttools qtwebengine sqlite openssl pcre inotify-tools libcloudproviders ];
|
2017-08-28 22:33:51 +02:00
|
|
|
|
2019-07-05 17:42:08 +02:00
|
|
|
qtWrapperArgs = [
|
2019-08-23 00:24:37 +02:00
|
|
|
''--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libsecret ]}''
|
2019-07-05 17:42:08 +02:00
|
|
|
];
|
|
|
|
|
2019-08-23 22:11:17 +02:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_INSTALL_LIBDIR=lib" # expected to be prefix-relative by build code setting RPATH
|
|
|
|
];
|
2017-09-13 01:29:16 +02:00
|
|
|
|
2019-08-23 00:24:37 +02:00
|
|
|
meta = with lib; {
|
2017-08-28 22:33:51 +02:00
|
|
|
description = "Nextcloud themed desktop client";
|
|
|
|
homepage = https://nextcloud.com;
|
|
|
|
license = licenses.gpl2;
|
2018-11-23 08:31:31 +01:00
|
|
|
maintainers = with maintainers; [ caugner ma27 ];
|
2018-03-11 07:01:25 +01:00
|
|
|
platforms = platforms.linux;
|
2017-08-28 22:33:51 +02:00
|
|
|
};
|
|
|
|
}
|