nixpkgs/pkgs/applications/networking/seafile-client/default.nix
Ryan Mulligan d95813fc14 seafile-client: 6.1.0 -> 6.1.5
Semi-automatic update. These checks were performed:

- built on NixOS
- found 6.1.5 with grep in /nix/store/7y211zn1irykpjfgf8n38vbhh57xgaq2-seafile-client-6.1.5
- found 6.1.5 in filename of file in /nix/store/7y211zn1irykpjfgf8n38vbhh57xgaq2-seafile-client-6.1.5

cc "@calrama"
2018-02-27 15:52:32 -08:00

36 lines
1.1 KiB
Nix

{ stdenv, fetchurl, writeScript, pkgconfig, cmake, qtbase, qttools
, seafile-shared, ccnet, makeWrapper
, withShibboleth ? true, qtwebengine }:
with stdenv.lib;
stdenv.mkDerivation rec {
version = "6.1.5";
name = "seafile-client-${version}";
src = fetchurl {
url = "https://github.com/haiwen/seafile-client/archive/v${version}.tar.gz";
sha256 = "09m1k99pb8vj37zfr8a0j5xyghyvxindmdpgxvvxh589q4ngfsx8";
};
nativeBuildInputs = [ pkgconfig cmake makeWrapper ];
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 ]}
'';
meta = with stdenv.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 = [ maintainers.calrama ];
};
}