summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2017-09-05 18:05:42 +0200
committerRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2017-09-05 19:33:22 +0200
commit7cceee29fb712067cf00e4e14c9376b71df2248b (patch)
tree1a966ec6c31e171c78d9feda303f93e85f6d2beb /pkgs/applications
parent101a048f95306c744b1255eefcc25d8826e52a92 (diff)
downloadnixpkgs-7cceee29fb712067cf00e4e14c9376b71df2248b.tar
nixpkgs-7cceee29fb712067cf00e4e14c9376b71df2248b.tar.gz
nixpkgs-7cceee29fb712067cf00e4e14c9376b71df2248b.tar.bz2
nixpkgs-7cceee29fb712067cf00e4e14c9376b71df2248b.tar.lz
nixpkgs-7cceee29fb712067cf00e4e14c9376b71df2248b.tar.xz
nixpkgs-7cceee29fb712067cf00e4e14c9376b71df2248b.tar.zst
nixpkgs-7cceee29fb712067cf00e4e14c9376b71df2248b.zip
seafile-client: add optional Shibboleth support
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/networking/seafile-client/default.nix11
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/applications/networking/seafile-client/default.nix b/pkgs/applications/networking/seafile-client/default.nix
index d930e24883e..74f5ecb6b75 100644
--- a/pkgs/applications/networking/seafile-client/default.nix
+++ b/pkgs/applications/networking/seafile-client/default.nix
@@ -1,5 +1,8 @@
 { stdenv, fetchurl, writeScript, pkgconfig, cmake, qtbase, qttools
-, seafile-shared, ccnet, makeWrapper }:
+, seafile-shared, ccnet, makeWrapper
+, withShibboleth ? true, qtwebengine }:
+
+with stdenv.lib;
 
 stdenv.mkDerivation rec {
   version = "6.1.0";
@@ -11,7 +14,11 @@ stdenv.mkDerivation rec {
   };
 
   nativeBuildInputs = [ pkgconfig cmake makeWrapper ];
-  buildInputs = [ qtbase qttools seafile-shared ];
+  buildInputs = [ qtbase qttools seafile-shared ]
+    ++ optional withShibboleth qtwebengine;
+
+  cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" ]
+    ++ optional withShibboleth "-DBUILD_SHIBBOLETH_SUPPORT=ON";
 
   postInstall = ''
     wrapProgram $out/bin/seafile-applet \