@@ -1,5 +1,8 @@
11{ stdenv, fetchurl, writeScript, pkgconfig, cmake, qtbase, qttools
2−, seafile-shared, ccnet, makeWrapper }:
2+, seafile-shared, ccnet, makeWrapper
3+, withShibboleth ? true, qtwebengine }:
4+
5+with stdenv.lib;
36
47stdenv.mkDerivation rec {
58 version = "6.1.0";
@@ -11,7 +14,11 @@ stdenv.mkDerivation rec {
1114 };
1215
1316 nativeBuildInputs = [ pkgconfig cmake makeWrapper ];
14− buildInputs = [ qtbase qttools seafile-shared ];
17+ buildInputs = [ qtbase qttools seafile-shared ]
18+ ++ optional withShibboleth qtwebengine;
19+
20+ cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" ]
21+ ++ optional withShibboleth "-DBUILD_SHIBBOLETH_SUPPORT=ON";
1522
1623 postInstall = ''
1724 wrapProgram $out/bin/seafile-applet \