2021-07-03 03:11:41 +00:00
|
|
|
{ mkDerivation, lib, fetchFromGitHub, pkg-config, cmake, qtbase, qttools
|
2021-01-05 17:05:55 +00:00
|
|
|
, seafile-shared, jansson, libsearpc
|
2020-04-24 23:36:52 +00:00
|
|
|
, withShibboleth ? true, qtwebengine }:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "seafile-client";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "8.0.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "haiwen";
|
|
|
|
repo = "seafile-client";
|
2022-04-27 09:35:20 +00:00
|
|
|
# Tag v8.0.7 used to point to this commit, but was re-tagged later to a state
|
|
|
|
# that fails to link properly
|
|
|
|
rev = "8b96abf64e6aa19e3beeff6b322bcd6d28120bdd";
|
|
|
|
sha256 = "00wfr7dvbyl7pg1xgssgz8a94c7c4n5r9266lhy9qcbz456hdcgj";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config cmake ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ qtbase qttools seafile-shared jansson libsearpc ]
|
|
|
|
++ lib.optional withShibboleth qtwebengine;
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" ]
|
|
|
|
++ lib.optional withShibboleth "-DBUILD_SHIBBOLETH_SUPPORT=ON";
|
|
|
|
|
|
|
|
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 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|