mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 15:11:35 +00:00
35 lines
1 KiB
Nix
35 lines
1 KiB
Nix
{ mkDerivation, lib, fetchFromGitHub, pkgconfig, cmake, qtbase, qttools
|
|
, seafile-shared, ccnet, jansson, libsearpc
|
|
, withShibboleth ? true, qtwebengine }:
|
|
|
|
mkDerivation rec {
|
|
pname = "seafile-client";
|
|
version = "7.0.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "haiwen";
|
|
repo = "seafile-client";
|
|
rev = "v${version}";
|
|
sha256 = "0szdyprljyckmbrw5sypizs22j96q84ak6nyidyr2j6gf4grh9mg";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig cmake ];
|
|
buildInputs = [ qtbase qttools seafile-shared jansson libsearpc ]
|
|
++ lib.optional withShibboleth qtwebengine;
|
|
|
|
cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" ]
|
|
++ lib.optional withShibboleth "-DBUILD_SHIBBOLETH_SUPPORT=ON";
|
|
|
|
qtWrapperArgs = [
|
|
"--suffix PATH : ${lib.makeBinPath [ ccnet 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; [ ];
|
|
};
|
|
}
|