mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 19:54:05 +00:00
49148a3f7f
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
56 lines
1.1 KiB
Nix
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.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "haiwen";
|
|
repo = "seafile-client";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-zoo34mhNZTEwxjSy8XgmZfEjkujmWj34OtDJQSCb/zk=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|