2019-08-22 23:24:37 +01:00
|
|
|
{ lib, mkDerivation, fetchgit, cmake, pkgconfig, qtbase, qtwebkit, qtkeychain, qttools, sqlite
|
2019-08-23 16:27:39 +01:00
|
|
|
, inotify-tools, openssl, pcre, qtwebengine, libsecret
|
2019-04-06 10:53:39 +01:00
|
|
|
, libcloudproviders
|
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 {
|
2017-08-28 21:33:51 +01:00
|
|
|
name = "nextcloud-client-${version}";
|
2019-08-22 23:24:37 +01:00
|
|
|
version = "2.5.3";
|
2017-08-28 21:33:51 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
2018-11-23 07:31:31 +00:00
|
|
|
url = "git://github.com/nextcloud/desktop.git";
|
|
|
|
rev = "refs/tags/v${version}";
|
2019-08-22 23:24:37 +01:00
|
|
|
sha256 = "0fbw56bfbyk3cqv94iqfsxjf01dwy1ysjz89dri7qccs65rnjswj";
|
2017-08-28 21:33:51 +01:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2019-08-22 23:24:37 +01:00
|
|
|
patches = [
|
|
|
|
./0001-Explicitly-copy-dbus-files-into-the-store-dir.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig cmake ];
|
2017-09-13 00:29:16 +01:00
|
|
|
|
2019-07-30 02:41:32 +01:00
|
|
|
buildInputs = [ qtbase qtwebkit qtkeychain qttools qtwebengine sqlite openssl.out pcre inotify-tools libcloudproviders ];
|
2017-08-28 21:33:51 +01:00
|
|
|
|
2017-09-12 00:52:48 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2019-07-30 02:41:32 +01:00
|
|
|
NIX_LDFLAGS = "${openssl.out}/lib/libssl.so ${openssl.out}/lib/libcrypto.so";
|
2017-09-12 00:31:41 +01:00
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-UCMAKE_INSTALL_LIBDIR"
|
|
|
|
"-DCMAKE_BUILD_TYPE=Release"
|
2019-07-30 02:41:32 +01:00
|
|
|
"-DOPENSSL_LIBRARIES=${openssl.out}/lib"
|
|
|
|
"-DOPENSSL_INCLUDE_DIR=${openssl.dev}/include"
|
2017-09-12 00:34:17 +01:00
|
|
|
"-DINOTIFY_LIBRARY=${inotify-tools}/lib/libinotifytools.so"
|
|
|
|
"-DINOTIFY_INCLUDE_DIR=${inotify-tools}/include"
|
2017-09-12 00:31:41 +01:00
|
|
|
];
|
2017-08-28 21:33:51 +01:00
|
|
|
|
2019-07-05 16:42:08 +01:00
|
|
|
qtWrapperArgs = [
|
2019-08-22 23:24:37 +01:00
|
|
|
''--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libsecret ]}''
|
2019-07-05 16:42:08 +01:00
|
|
|
];
|
|
|
|
|
2018-01-13 09:55:35 +00:00
|
|
|
postInstall = ''
|
|
|
|
sed -i 's/\(Icon.*\)=nextcloud/\1=Nextcloud/g' \
|
2018-11-25 20:26:25 +00:00
|
|
|
$out/share/applications/nextcloud.desktop
|
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
|
|
|
};
|
|
|
|
}
|