2023-04-14 19:23:21 +01:00
|
|
|
{ lib
|
2023-05-05 10:56:35 +01:00
|
|
|
, stdenv
|
2023-04-14 19:23:21 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, cmake
|
|
|
|
, extra-cmake-modules
|
2023-10-26 21:46:39 +01:00
|
|
|
, qt6
|
|
|
|
, qt6Packages
|
2023-04-14 19:23:21 +01:00
|
|
|
, sqlite
|
|
|
|
, libsecret
|
2023-10-26 21:46:39 +01:00
|
|
|
, libre-graph-api-cpp-qt-client
|
|
|
|
, kdsingleapplication
|
|
|
|
# darwin only:
|
|
|
|
, libinotify-kqueue
|
|
|
|
, sparkleshare
|
2023-04-14 19:23:21 +01:00
|
|
|
}:
|
2014-11-20 10:24:51 +00:00
|
|
|
|
2023-05-05 10:56:35 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "owncloud-client";
|
2023-10-26 21:46:39 +01:00
|
|
|
version = "5.0.0";
|
2023-04-14 19:23:21 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "owncloud";
|
|
|
|
repo = "client";
|
|
|
|
rev = "refs/tags/v${version}";
|
2023-10-26 21:46:39 +01:00
|
|
|
hash = "sha256-SSMNmWrCT1sGa38oY8P84QNedNkQPcIRWrV9B65B5X8=";
|
2014-11-20 10:24:51 +00:00
|
|
|
};
|
|
|
|
|
2023-10-26 21:46:39 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
cmake
|
|
|
|
extra-cmake-modules
|
|
|
|
qt6.qttools
|
|
|
|
qt6.wrapQtAppsHook
|
|
|
|
];
|
2020-07-02 14:04:37 +01:00
|
|
|
|
2023-10-26 21:46:39 +01:00
|
|
|
buildInputs = [
|
|
|
|
sqlite
|
|
|
|
libsecret
|
|
|
|
qt6.qtbase
|
|
|
|
qt6.qtsvg # Needed for the systray icon
|
|
|
|
qt6Packages.qtkeychain
|
|
|
|
libre-graph-api-cpp-qt-client
|
|
|
|
kdsingleapplication
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
libinotify-kqueue sparkleshare
|
2016-05-12 12:10:46 +01:00
|
|
|
];
|
2014-11-20 10:24:51 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-11-20 10:24:51 +00:00
|
|
|
description = "Synchronise your ownCloud with your computer using this desktop client";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://owncloud.org";
|
2023-04-14 19:23:21 +01:00
|
|
|
maintainers = with maintainers; [ qknight hellwolf ];
|
2017-03-17 22:53:10 +00:00
|
|
|
platforms = platforms.unix;
|
2018-08-09 11:46:06 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2023-04-14 19:23:21 +01:00
|
|
|
changelog = "https://github.com/owncloud/client/releases/tag/v${version}";
|
2014-11-20 10:24:51 +00:00
|
|
|
};
|
|
|
|
}
|