nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 59 lines 1.2 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 pkg-config, 6 cmake, 7 qttools, 8 libuuid, 9 seafile-shared, 10 jansson, 11 libsearpc, 12 withShibboleth ? true, 13 qtwebengine, 14 wrapQtAppsHook, 15}: 16 17stdenv.mkDerivation rec { 18 pname = "seafile-client"; 19 version = "9.0.12"; 20 21 src = fetchFromGitHub { 22 owner = "haiwen"; 23 repo = "seafile-client"; 24 rev = "v${version}"; 25 sha256 = "sha256-9ng8TsT211jAt2Vhv8fEIQGCtbQ6LQ6pCVFToVaK8LY="; 26 }; 27 28 nativeBuildInputs = [ 29 libuuid 30 pkg-config 31 cmake 32 wrapQtAppsHook 33 qttools 34 ]; 35 36 buildInputs = [ 37 seafile-shared 38 jansson 39 libsearpc 40 ] 41 ++ lib.optional withShibboleth qtwebengine; 42 43 cmakeFlags = lib.optional withShibboleth "-DBUILD_SHIBBOLETH_SUPPORT=ON"; 44 45 qtWrapperArgs = [ 46 "--suffix PATH : ${lib.makeBinPath [ seafile-shared ]}" 47 ]; 48 49 meta = with lib; { 50 homepage = "https://github.com/haiwen/seafile-client"; 51 description = "Desktop client for Seafile, the Next-generation Open Source Cloud Storage"; 52 license = licenses.asl20; 53 platforms = platforms.linux; 54 maintainers = with maintainers; [ 55 schmittlauch 56 ]; 57 mainProgram = "seafile-applet"; 58 }; 59}