2015-01-09 13:37:44 +01:00
|
|
|
{stdenv, fetchurl, which, automake, autoconf, pkgconfig, curl, libtool, vala, python, intltool, fuse, ccnet}:
|
2014-02-04 20:02:46 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec
|
|
|
|
{
|
2015-10-31 15:16:26 +01:00
|
|
|
version = "4.4.2";
|
2014-02-04 20:02:46 +01:00
|
|
|
name = "seafile-shared-${version}";
|
|
|
|
|
|
|
|
src = fetchurl
|
|
|
|
{
|
|
|
|
url = "https://github.com/haiwen/seafile/archive/v${version}.tar.gz";
|
2015-10-31 15:16:26 +01:00
|
|
|
sha256 = "00sflvyap3nw38qblpagp2japgp83sqc5s4r336mi6475grgmnyi";
|
2014-02-04 20:02:46 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ which automake autoconf pkgconfig libtool vala python intltool fuse ];
|
2015-01-09 13:37:44 +01:00
|
|
|
propagatedBuildInputs = [ ccnet curl ];
|
2014-02-04 20:02:46 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sed -ie 's|/bin/bash|/bin/sh|g' ./autogen.sh
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = "--disable-server --disable-console";
|
|
|
|
|
|
|
|
buildPhase = "make -j1";
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
# Remove seafile binary
|
|
|
|
rm -rf "$out/bin/seafile"
|
|
|
|
# Remove cli client binary
|
|
|
|
rm -rf "$out/bin/seaf-cli"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta =
|
|
|
|
{
|
|
|
|
homepage = "https://github.com/haiwen/seafile";
|
|
|
|
description = "Shared components of Seafile: seafile-daemon, libseafile, libseafile python bindings, manuals, and icons";
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2014-02-28 17:10:43 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-02-04 20:02:46 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.calrama ];
|
|
|
|
};
|
|
|
|
}
|