lol
at 17.09-beta 41 lines 1.2 kB view raw
1{stdenv, fetchurl, which, automake, autoconf, pkgconfig, curl, libtool, vala_0_23, python, intltool, fuse, ccnet}: 2 3stdenv.mkDerivation rec 4{ 5 version = "6.1.0"; 6 name = "seafile-shared-${version}"; 7 8 src = fetchurl 9 { 10 url = "https://github.com/haiwen/seafile/archive/v${version}.tar.gz"; 11 sha256 = "03zvxk25311xgn383k54qvvpr8xbnl1vxd99fg4ca9yg5rmir1q6"; 12 }; 13 14 buildInputs = [ which automake autoconf pkgconfig libtool vala_0_23 python intltool fuse ]; 15 propagatedBuildInputs = [ ccnet curl ]; 16 17 preConfigure = '' 18 sed -ie 's|/bin/bash|${stdenv.shell}|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}