2017-09-12 00:34:17 +01:00
|
|
|
{ stdenv, fetchgit, cmake, pkgconfig, qtbase, qtwebkit, qtkeychain, sqlite
|
2017-09-13 00:29:16 +01:00
|
|
|
, inotify-tools, withGnomeKeyring ? false, makeWrapper, libgnome_keyring }:
|
2017-08-28 21:33:51 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "nextcloud-client-${version}";
|
|
|
|
version = "2.3.2";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://github.com/nextcloud/client_theming.git";
|
|
|
|
rev = "1ee750d1aeaaefc899629e85c311594603e9ac1b";
|
|
|
|
sha256 = "0dxyng8a7cg78z8yngiqypsb44lf5c6vkabvkfch0cl0cqmarc1a";
|
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig cmake ];
|
2017-09-13 00:29:16 +01:00
|
|
|
|
2017-09-12 00:34:17 +01:00
|
|
|
buildInputs = [ qtbase qtwebkit qtkeychain sqlite ]
|
2017-09-13 00:29:16 +01:00
|
|
|
++ stdenv.lib.optional stdenv.isLinux inotify-tools
|
|
|
|
++ stdenv.lib.optional withGnomeKeyring makeWrapper;
|
2017-08-28 21:33:51 +01:00
|
|
|
|
2017-09-12 00:52:48 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-09-12 00:31:41 +01:00
|
|
|
dontUseCmakeBuildDir = true;
|
|
|
|
|
|
|
|
cmakeDir = "client";
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-UCMAKE_INSTALL_LIBDIR"
|
|
|
|
"-DCMAKE_BUILD_TYPE=Release"
|
|
|
|
"-DOEM_THEME_DIR=${src}/nextcloudtheme"
|
2017-09-12 00:34:17 +01:00
|
|
|
] ++ stdenv.lib.optionals stdenv.isLinux [
|
|
|
|
"-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
|
|
|
|
2017-09-13 00:29:16 +01:00
|
|
|
postInstall = stdenv.lib.optionalString (withGnomeKeyring) ''
|
|
|
|
wrapProgram "$out/bin/nextcloud" \
|
|
|
|
--prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath [ libgnome_keyring ]}
|
|
|
|
'';
|
|
|
|
|
2017-08-28 21:33:51 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Nextcloud themed desktop client";
|
|
|
|
homepage = https://nextcloud.com;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ caugner ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|