Skip to content

Commit

Permalink
seafile-client: Use qt5's mkDerivation
Browse files Browse the repository at this point in the history
Following guidelines from NixOS#65399
  • Loading branch information
greizgh authored and worldofpeace committed Aug 23, 2019
1 parent 9fd5b75 commit 041c82e
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions pkgs/applications/networking/seafile-client/default.nix
@@ -1,10 +1,10 @@
{ stdenv, fetchFromGitHub, pkgconfig, cmake, qtbase, qttools
, seafile-shared, ccnet, makeWrapper
{ stdenv, mkDerivation, fetchFromGitHub, pkgconfig, cmake, qtbase, qttools
, seafile-shared, ccnet
, withShibboleth ? true, qtwebengine }:

with stdenv.lib;

stdenv.mkDerivation rec {
mkDerivation rec {
version = "6.2.11";
name = "seafile-client-${version}";

Expand All @@ -15,17 +15,16 @@ stdenv.mkDerivation rec {
sha256 = "1b8jqmr2qd3bpb3sr4p5w2a76x5zlknkj922sxrvw1rdwqhkb2pj";
};

nativeBuildInputs = [ pkgconfig cmake makeWrapper ];
nativeBuildInputs = [ pkgconfig cmake ];
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 \
--suffix PATH : ${stdenv.lib.makeBinPath [ ccnet seafile-shared ]}
'';
qtWrapperArgs = [
"--suffix PATH : ${stdenv.lib.makeBinPath [ ccnet seafile-shared ]}"
];

meta = with stdenv.lib; {
homepage = https://github.com/haiwen/seafile-client;
Expand Down

0 comments on commit 041c82e

Please sign in to comment.