2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, cmake
|
|
|
|
, qtbase
|
|
|
|
, qttools
|
|
|
|
, libuuid
|
|
|
|
, seafile-shared
|
|
|
|
, jansson
|
|
|
|
, libsearpc
|
|
|
|
, withShibboleth ? true
|
|
|
|
, qtwebengine
|
|
|
|
, wrapQtAppsHook
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "seafile-client";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "9.0.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "haiwen";
|
|
|
|
repo = "seafile-client";
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "v${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
sha256 = "sha256-fAPEtULab3Ug4gRCS+Eigp48JkORi7tvic2vp5jaw44=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
libuuid
|
|
|
|
pkg-config
|
|
|
|
cmake
|
|
|
|
wrapQtAppsHook
|
|
|
|
qttools
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
seafile-shared
|
|
|
|
jansson
|
|
|
|
libsearpc
|
|
|
|
] ++ lib.optional withShibboleth qtwebengine;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
cmakeFlags = lib.optional withShibboleth "-DBUILD_SHIBBOLETH_SUPPORT=ON";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
qtWrapperArgs = [
|
2021-01-05 17:05:55 +00:00
|
|
|
"--suffix PATH : ${lib.makeBinPath [ seafile-shared ]}"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/haiwen/seafile-client";
|
|
|
|
description = "Desktop client for Seafile, the Next-generation Open Source Cloud Storage";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.linux;
|
2021-12-06 16:07:01 +00:00
|
|
|
maintainers = with maintainers; [ schmittlauch greizgh ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "seafile-applet";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|