2016-08-21 17:15:14 +00:00
|
|
|
{stdenv, fetchurl, which, automake, autoconf, pkgconfig, curl, libtool, vala_0_23, python, intltool, fuse, ccnet}:
|
2014-02-04 19:02:46 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec
|
|
|
|
{
|
2017-08-06 17:09:33 +00:00
|
|
|
version = "6.1.0";
|
2014-02-04 19:02:46 +00:00
|
|
|
name = "seafile-shared-${version}";
|
|
|
|
|
|
|
|
src = fetchurl
|
|
|
|
{
|
|
|
|
url = "https://github.com/haiwen/seafile/archive/v${version}.tar.gz";
|
2017-08-06 17:09:33 +00:00
|
|
|
sha256 = "03zvxk25311xgn383k54qvvpr8xbnl1vxd99fg4ca9yg5rmir1q6";
|
2014-02-04 19:02:46 +00:00
|
|
|
};
|
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ which automake autoconf libtool vala_0_23 python intltool fuse ];
|
2015-01-09 12:37:44 +00:00
|
|
|
propagatedBuildInputs = [ ccnet curl ];
|
2014-02-04 19:02:46 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
2017-08-06 17:09:33 +00:00
|
|
|
sed -ie 's|/bin/bash|${stdenv.shell}|g' ./autogen.sh
|
2014-02-04 19:02:46 +00:00
|
|
|
./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 =
|
|
|
|
{
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = https://github.com/haiwen/seafile;
|
2014-02-04 19:02:46 +00:00
|
|
|
description = "Shared components of Seafile: seafile-daemon, libseafile, libseafile python bindings, manuals, and icons";
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
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 ];
|
|
|
|
};
|
|
|
|
}
|