2014-02-05 17:25:43 +00:00
|
|
|
{stdenv, fetchurl, writeScript, pkgconfig, cmake, qt4, seafile-shared, ccnet, makeWrapper}:
|
2014-02-04 19:02:46 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec
|
|
|
|
{
|
2015-01-09 12:37:44 +00:00
|
|
|
version = "4.0.6";
|
2014-02-04 19:02:46 +00:00
|
|
|
name = "seafile-client-${version}";
|
|
|
|
|
|
|
|
src = fetchurl
|
|
|
|
{
|
|
|
|
url = "https://github.com/haiwen/seafile-client/archive/v${version}.tar.gz";
|
2015-01-09 12:37:44 +00:00
|
|
|
sha256 = "0hx8zjmgj4ki2p5fkdyz32fy8db60p6rvi3my9l59j7fslv71k1z";
|
2014-02-04 19:02:46 +00:00
|
|
|
};
|
|
|
|
|
2014-02-05 17:25:43 +00:00
|
|
|
buildInputs = [ pkgconfig cmake qt4 seafile-shared makeWrapper ];
|
2014-02-04 19:02:46 +00:00
|
|
|
|
|
|
|
builder = writeScript "${name}-builder.sh" ''
|
2014-02-28 16:06:18 +00:00
|
|
|
source $stdenv/setup
|
2014-02-04 19:02:46 +00:00
|
|
|
|
2014-02-28 16:06:18 +00:00
|
|
|
tar xvfz $src
|
|
|
|
cd seafile-client-*
|
2014-02-04 19:02:46 +00:00
|
|
|
|
2014-02-28 16:06:18 +00:00
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_BUILD_RPATH=ON -DCMAKE_INSTALL_PREFIX="$out" .
|
|
|
|
make -j1
|
2014-02-04 19:02:46 +00:00
|
|
|
|
2014-02-28 16:06:18 +00:00
|
|
|
make install
|
2014-02-04 19:02:46 +00:00
|
|
|
|
2014-02-28 16:06:18 +00:00
|
|
|
wrapProgram $out/bin/seafile-applet \
|
|
|
|
--suffix PATH : ${ccnet}/bin:${seafile-shared}/bin
|
|
|
|
'';
|
2014-02-04 19:02:46 +00:00
|
|
|
|
|
|
|
meta =
|
|
|
|
{
|
|
|
|
homepage = "https://github.com/haiwen/seafile-clients";
|
|
|
|
description = "Desktop client for Seafile, the Next-generation Open Source Cloud Storage";
|
|
|
|
license = stdenv.lib.licenses.asl20;
|
2014-02-28 16:10:43 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-02-04 19:02:46 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.calrama ];
|
|
|
|
};
|
|
|
|
}
|