2016-08-21 18:17:25 +01:00
|
|
|
{stdenv, fetchurl, which, automake, autoconf, pkgconfig, libtool, vala_0_23, python, libsearpc, libzdb, libuuid, libevent, sqlite, openssl}:
|
2014-02-04 19:02:46 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec
|
|
|
|
{
|
2017-08-06 18:09:33 +01:00
|
|
|
version = "6.1.0";
|
|
|
|
seafileVersion = "6.1.0";
|
2014-02-04 19:02:46 +00:00
|
|
|
name = "ccnet-${version}";
|
|
|
|
|
|
|
|
src = fetchurl
|
|
|
|
{
|
2016-04-23 01:52:42 +01:00
|
|
|
url = "https://github.com/haiwen/ccnet/archive/v${version}.tar.gz";
|
2017-08-06 18:09:33 +01:00
|
|
|
sha256 = "0q4a102xlcsxlr53h4jr4w8qzkbzvm2f3nk9fsha48h6l2hw34bb";
|
2014-02-04 19:02:46 +00:00
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ which automake autoconf libtool vala_0_23 python ];
|
2014-02-04 19:02:46 +00:00
|
|
|
propagatedBuildInputs = [ libsearpc libzdb libuuid libevent sqlite openssl ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
2017-08-06 18:09:33 +01:00
|
|
|
sed -ie 's|/bin/bash|${stdenv.shell}|g' ./autogen.sh
|
2014-02-04 19:02:46 +00:00
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = "--enable-server";
|
|
|
|
|
|
|
|
buildPhase = "make -j1";
|
|
|
|
|
|
|
|
meta =
|
|
|
|
{
|
2014-11-11 13:20:43 +00:00
|
|
|
homepage = https://github.com/haiwen/ccnet;
|
|
|
|
description = "A framework for writing networked applications in C";
|
2014-02-04 19:02:46 +00:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
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 ];
|
|
|
|
};
|
|
|
|
}
|