seafile-shared: use recent vala + clean-up

This commit is contained in:
Jan Tojnar 2017-12-19 08:09:01 +01:00
parent a91a051332
commit c9bf4b4f05
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -1,28 +1,22 @@
{stdenv, fetchurl, which, automake, autoconf, pkgconfig, curl, libtool, vala_0_23, python, intltool, fuse, ccnet}: {stdenv, fetchurl, which, autoreconfHook, pkgconfig, curl, vala, python, intltool, fuse, ccnet}:
stdenv.mkDerivation rec stdenv.mkDerivation rec {
{
version = "6.1.0"; version = "6.1.0";
name = "seafile-shared-${version}"; name = "seafile-shared-${version}";
src = fetchurl src = fetchurl {
{
url = "https://github.com/haiwen/seafile/archive/v${version}.tar.gz"; url = "https://github.com/haiwen/seafile/archive/v${version}.tar.gz";
sha256 = "03zvxk25311xgn383k54qvvpr8xbnl1vxd99fg4ca9yg5rmir1q6"; sha256 = "03zvxk25311xgn383k54qvvpr8xbnl1vxd99fg4ca9yg5rmir1q6";
}; };
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig which autoreconfHook vala intltool ];
buildInputs = [ which automake autoconf libtool vala_0_23 python intltool fuse ]; buildInputs = [ python fuse ];
propagatedBuildInputs = [ ccnet curl ]; propagatedBuildInputs = [ ccnet curl ];
preConfigure = '' configureFlags = [
sed -ie 's|/bin/bash|${stdenv.shell}|g' ./autogen.sh "--disable-server"
./autogen.sh "--disable-console"
''; ];
configureFlags = "--disable-server --disable-console";
buildPhase = "make -j1";
postInstall = '' postInstall = ''
# Remove seafile binary # Remove seafile binary
@ -31,12 +25,11 @@ stdenv.mkDerivation rec
rm -rf "$out/bin/seaf-cli" rm -rf "$out/bin/seaf-cli"
''; '';
meta = meta = with stdenv.lib; {
{
homepage = https://github.com/haiwen/seafile; homepage = https://github.com/haiwen/seafile;
description = "Shared components of Seafile: seafile-daemon, libseafile, libseafile python bindings, manuals, and icons"; description = "Shared components of Seafile: seafile-daemon, libseafile, libseafile python bindings, manuals, and icons";
license = stdenv.lib.licenses.gpl3; license = licenses.gpl3;
platforms = stdenv.lib.platforms.linux; platforms = platforms.linux;
maintainers = [ stdenv.lib.maintainers.calrama ]; maintainers = [ maintainers.calrama ];
}; };
} }