at v206 41 lines 1.1 kB view raw
1{stdenv, fetchurl, which, automake, autoconf, pkgconfig, curl, libtool, vala, python, intltool, fuse, ccnet}: 2 3stdenv.mkDerivation rec 4{ 5 version = "4.0.6"; 6 name = "seafile-shared-${version}"; 7 8 src = fetchurl 9 { 10 url = "https://github.com/haiwen/seafile/archive/v${version}.tar.gz"; 11 sha256 = "1vs1ckxkh0kg1wjklpwdz87d5z60r80q27xv1s6yl7ir65s6zq0i"; 12 }; 13 14 buildInputs = [ which automake autoconf pkgconfig libtool vala python intltool fuse ]; 15 propagatedBuildInputs = [ ccnet curl ]; 16 17 preConfigure = '' 18 sed -ie 's|/bin/bash|/bin/sh|g' ./autogen.sh 19 ./autogen.sh 20 ''; 21 22 configureFlags = "--disable-server --disable-console"; 23 24 buildPhase = "make -j1"; 25 26 postInstall = '' 27 # Remove seafile binary 28 rm -rf "$out/bin/seafile" 29 # Remove cli client binary 30 rm -rf "$out/bin/seaf-cli" 31 ''; 32 33 meta = 34 { 35 homepage = "https://github.com/haiwen/seafile"; 36 description = "Shared components of Seafile: seafile-daemon, libseafile, libseafile python bindings, manuals, and icons"; 37 license = stdenv.lib.licenses.gpl3; 38 platforms = stdenv.lib.platforms.linux; 39 maintainers = [ stdenv.lib.maintainers.calrama ]; 40 }; 41}