2014-02-04 20:02:46 +01:00
|
|
|
{stdenv, fetchurl, which, automake, autoconf, pkgconfig, libtool, vala, python, libsearpc, libzdb, libuuid, libevent, sqlite, openssl}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec
|
|
|
|
{
|
2014-05-24 03:32:02 +02:00
|
|
|
version = "1.4.2";
|
2015-01-09 13:37:44 +01:00
|
|
|
seafileVersion = "4.0.6";
|
2014-02-04 20:02:46 +01:00
|
|
|
name = "ccnet-${version}";
|
|
|
|
|
|
|
|
src = fetchurl
|
|
|
|
{
|
|
|
|
url = "https://github.com/haiwen/ccnet/archive/v${seafileVersion}.tar.gz";
|
2015-01-09 13:37:44 +01:00
|
|
|
sha256 = "06srvyphrfx7g18vk899850q0aw8cxx34cj96mjzc3sqm0bkzqsh";
|
2014-02-04 20:02:46 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ which automake autoconf pkgconfig libtool vala python ];
|
|
|
|
propagatedBuildInputs = [ libsearpc libzdb libuuid libevent sqlite openssl ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sed -ie 's|/bin/bash|/bin/sh|g' ./autogen.sh
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = "--enable-server";
|
|
|
|
|
|
|
|
buildPhase = "make -j1";
|
|
|
|
|
|
|
|
meta =
|
|
|
|
{
|
2014-11-11 14:20:43 +01:00
|
|
|
homepage = https://github.com/haiwen/ccnet;
|
|
|
|
description = "A framework for writing networked applications in C";
|
2014-02-04 20:02:46 +01:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2014-02-28 17:10:43 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-02-04 20:02:46 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.calrama ];
|
|
|
|
};
|
|
|
|
}
|