nixpkgs/pkgs/applications/networking/seafile-client/default.nix

35 lines
1.0 KiB
Nix
Raw Normal View History

2021-06-30 14:11:42 +00:00
{ mkDerivation, lib, fetchFromGitHub, pkg-config, cmake, qtbase, qttools
, seafile-shared, jansson, libsearpc
, withShibboleth ? true, qtwebengine }:
mkDerivation rec {
pname = "seafile-client";
2021-10-28 21:33:33 +00:00
version = "8.0.4";
2018-02-28 09:48:52 +00:00
src = fetchFromGitHub {
owner = "haiwen";
repo = "seafile-client";
2021-06-30 14:11:42 +00:00
rev = "v${version}";
2021-10-28 21:33:33 +00:00
sha256 = "sha256-HIgIcw4Y/NXidCBwRMrdKojlqO8CJO+6N7s7PdBx4YQ=";
};
nativeBuildInputs = [ pkg-config cmake ];
2020-01-15 22:01:38 +00:00
buildInputs = [ qtbase qttools seafile-shared jansson libsearpc ]
++ lib.optional withShibboleth qtwebengine;
cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" ]
2020-01-15 22:01:38 +00:00
++ lib.optional withShibboleth "-DBUILD_SHIBBOLETH_SUPPORT=ON";
qtWrapperArgs = [
"--suffix PATH : ${lib.makeBinPath [ seafile-shared ]}"
];
2020-01-15 22:01:38 +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;
maintainers = with maintainers; [ schmittlauch ];
};
}