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