1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, cmake
, extra-cmake-modules
, qt6
, qt6Packages
, sqlite
, libsecret
, libre-graph-api-cpp-qt-client
, kdsingleapplication
# darwin only:
, libinotify-kqueue
, sparkleshare
}:
stdenv.mkDerivation rec {
pname = "owncloud-client";
version = "5.3.1";
src = fetchFromGitHub {
owner = "owncloud";
repo = "client";
rev = "refs/tags/v${version}";
hash = "sha256-ot+2hxipeZ5eI6nPJ8XGE8gFMNQoblUq+koAFZpZDv4=";
};
nativeBuildInputs = [
pkg-config
cmake
extra-cmake-modules
qt6.qttools
qt6.wrapQtAppsHook
];
buildInputs = [
sqlite
libsecret
qt6.qtbase
qt6.qtsvg # Needed for the systray icon
qt6Packages.qtkeychain
libre-graph-api-cpp-qt-client
kdsingleapplication
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
libinotify-kqueue sparkleshare
];
meta = with lib; {
description = "Synchronise your ownCloud with your computer using this desktop client";
homepage = "https://owncloud.org";
maintainers = with maintainers; [ qknight hellwolf ];
platforms = platforms.unix;
license = licenses.gpl2Plus;
changelog = "https://github.com/owncloud/client/releases/tag/v${version}";
};
}
|