mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{stdenv, fetchurl, writeScript, pkgconfig, cmake, qt4, seafile-shared, ccnet, makeWrapper}:
|
|
|
|
stdenv.mkDerivation rec
|
|
{
|
|
version = "4.0.6";
|
|
name = "seafile-client-${version}";
|
|
|
|
src = fetchurl
|
|
{
|
|
url = "https://github.com/haiwen/seafile-client/archive/v${version}.tar.gz";
|
|
sha256 = "0hx8zjmgj4ki2p5fkdyz32fy8db60p6rvi3my9l59j7fslv71k1z";
|
|
};
|
|
|
|
buildInputs = [ pkgconfig cmake qt4 seafile-shared makeWrapper ];
|
|
|
|
builder = writeScript "${name}-builder.sh" ''
|
|
source $stdenv/setup
|
|
|
|
tar xvfz $src
|
|
cd seafile-client-*
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_BUILD_RPATH=ON -DCMAKE_INSTALL_PREFIX="$out" .
|
|
make -j1
|
|
|
|
make install
|
|
|
|
wrapProgram $out/bin/seafile-applet \
|
|
--suffix PATH : ${ccnet}/bin:${seafile-shared}/bin
|
|
'';
|
|
|
|
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;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
maintainers = [ stdenv.lib.maintainers.calrama ];
|
|
};
|
|
}
|