3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/seafile-client/default.nix

35 lines
1 KiB
Nix
Raw Normal View History

{ mkDerivation, lib, fetchFromGitHub, pkgconfig, cmake, qtbase, qttools
2020-01-15 22:01:38 +00:00
, seafile-shared, ccnet, jansson, libsearpc
, withShibboleth ? true, qtwebengine }:
mkDerivation rec {
pname = "seafile-client";
2020-08-29 08:52:18 +01:00
version = "7.0.9";
2018-02-28 09:48:52 +00:00
src = fetchFromGitHub {
owner = "haiwen";
repo = "seafile-client";
rev = "v${version}";
2020-08-29 08:52:18 +01:00
sha256 = "0pcn6lfzma2hvpwsp9q0002wvym7zabpp8fvq29l101gzirn79m9";
};
nativeBuildInputs = [ pkgconfig 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 [ ccnet 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; [ ];
};
}