Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, cmake
|
|
, qttools
|
|
, libuuid
|
|
, seafile-shared
|
|
, jansson
|
|
, libsearpc
|
|
, withShibboleth ? true
|
|
, qtwebengine
|
|
, wrapQtAppsHook
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "seafile-client";
|
|
version = "9.0.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "haiwen";
|
|
repo = "seafile-client";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-dy5EXDEyxtV88Fgbao/J3fNwO5AO/ES0IJLIeRenO8I=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
libuuid
|
|
pkg-config
|
|
cmake
|
|
wrapQtAppsHook
|
|
qttools
|
|
];
|
|
|
|
buildInputs = [
|
|
seafile-shared
|
|
jansson
|
|
libsearpc
|
|
] ++ lib.optional withShibboleth qtwebengine;
|
|
|
|
cmakeFlags = 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; [ schmittlauch greizgh ];
|
|
mainProgram = "seafile-applet";
|
|
};
|
|
}
|