depot/third_party/nixpkgs/pkgs/applications/networking/seafile-client/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

56 lines
1.1 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, cmake
, qtbase
, qttools
, libuuid
, seafile-shared
, jansson
, libsearpc
, withShibboleth ? true
, qtwebengine
, wrapQtAppsHook
}:
stdenv.mkDerivation rec {
pname = "seafile-client";
version = "9.0.6";
src = fetchFromGitHub {
owner = "haiwen";
repo = "seafile-client";
rev = "v${version}";
sha256 = "sha256-JjicVgDqiuIuVn7swbVekqQ+3Ly64Nd7qKu5UymTEYE=";
};
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";
};
}