@@ -1,39 +1,28 @@
1−{stdenv, fetchurl, writeScript, pkgconfig, cmake, qt4, seafile-shared, ccnet, makeWrapper}:
1+{ stdenv, fetchurl, writeScript, pkgconfig, cmake, qtbase, qttools
2+, seafile-shared, ccnet, makeWrapper }:
23
3−stdenv.mkDerivation rec
4−{
5− version = "5.0.7";
4+stdenv.mkDerivation rec {
5+ version = "6.1.0";
66 name = "seafile-client-${version}";
77
8− src = fetchurl
9− {
8+ src = fetchurl {
109 url = "https://github.com/haiwen/seafile-client/archive/v${version}.tar.gz";
11− sha256 = "ae6975bc1adf45d09cf9f6332ceac7cf285f8191f6cf50c6291ed45f8cf4ffa5";
10+ sha256 = "16rn6b9ayaccgwx8hs3yh1wb395pp8ffh8may8a8bpcc4gdry7bd";
1211 };
1312
14− buildInputs = [ pkgconfig cmake qt4 seafile-shared makeWrapper ];
15−
16− builder = writeScript "${name}-builder.sh" ''
17− source $stdenv/setup
18−
19− tar xvfz $src
20− cd seafile-client-*
21−
22− cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_BUILD_RPATH=ON -DCMAKE_INSTALL_PREFIX="$out" .
23− make -j1
24−
25− make install
13+ nativeBuildInputs = [ pkgconfig cmake makeWrapper ];
14+ buildInputs = [ qtbase qttools seafile-shared ];
2615
16+ postInstall = ''
2717 wrapProgram $out/bin/seafile-applet \
2818 --suffix PATH : ${stdenv.lib.makeBinPath [ ccnet seafile-shared ]}
29− '';
19+ '';
3020
31− meta =
32− {
33− homepage = https://github.com/haiwen/seafile-clients;
21+ meta = with stdenv.lib; {
22+ homepage = https://github.com/haiwen/seafile-client;
3423 description = "Desktop client for Seafile, the Next-generation Open Source Cloud Storage";
35− license = stdenv.lib.licenses.asl20;
36− platforms = stdenv.lib.platforms.linux;
37− maintainers = [ stdenv.lib.maintainers.calrama ];
24+ license = licenses.asl20;
25+ platforms = platforms.linux;
26+ maintainers = [ maintainers.calrama ];
3827 };
3928}