34 lines
1 KiB
Nix
34 lines
1 KiB
Nix
{ mkDerivation, lib, fetchFromGitHub, pkg-config, cmake, qtbase, qttools
|
|
, seafile-shared, jansson, libsearpc
|
|
, withShibboleth ? true, qtwebengine }:
|
|
|
|
mkDerivation rec {
|
|
pname = "seafile-client";
|
|
version = "8.0.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "haiwen";
|
|
repo = "seafile-client";
|
|
rev = "b4b944921c7efef13a93d693c45c997943899dec";
|
|
sha256 = "2vV+6ZXjVg81JVLfWeD0UK+RdmpBxBU2Ozx790WFSyw=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config cmake ];
|
|
buildInputs = [ qtbase qttools seafile-shared jansson libsearpc ]
|
|
++ lib.optional withShibboleth qtwebengine;
|
|
|
|
cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" ]
|
|
++ lib.optional withShibboleth "-DBUILD_SHIBBOLETH_SUPPORT=ON";
|
|
|
|
qtWrapperArgs = [
|
|
"--suffix PATH : ${lib.makeBinPath [ seafile-shared ]}"
|
|
];
|
|
|
|
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;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|