Files
nixpkgs/pkgs/applications/networking/seafile-client/default.nix
2025-09-07 13:26:58 +02:00

60 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
pkg-config,
cmake,
qttools,
libuuid,
seafile-shared,
jansson,
libsearpc,
withShibboleth ? false, # qtwebengine vulnerable, so disabled by default
qtwebengine,
wrapQtAppsHook,
}:
stdenv.mkDerivation rec {
pname = "seafile-client";
version = "9.0.14";
src = fetchFromGitHub {
owner = "haiwen";
repo = "seafile-client";
rev = "v${version}";
hash = "sha256-ZMhU0uXAC3tH1e3ktiHhC5YCDwFOnILretPgjYYa9DQ=";
};
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
];
mainProgram = "seafile-applet";
};
}