lol
1{stdenv, fetchurl, which, automake, autoconf, pkgconfig, libtool, vala, python, libsearpc, libzdb, libuuid, libevent, sqlite, openssl}:
2
3stdenv.mkDerivation rec
4{
5 version = "1.4.2";
6 seafileVersion = "4.0.6";
7 name = "ccnet-${version}";
8
9 src = fetchurl
10 {
11 url = "https://github.com/haiwen/ccnet/archive/v${seafileVersion}.tar.gz";
12 sha256 = "06srvyphrfx7g18vk899850q0aw8cxx34cj96mjzc3sqm0bkzqsh";
13 };
14
15 buildInputs = [ which automake autoconf pkgconfig libtool vala python ];
16 propagatedBuildInputs = [ libsearpc libzdb libuuid libevent sqlite openssl ];
17
18 preConfigure = ''
19 sed -ie 's|/bin/bash|/bin/sh|g' ./autogen.sh
20 ./autogen.sh
21 '';
22
23 configureFlags = "--enable-server";
24
25 buildPhase = "make -j1";
26
27 meta =
28 {
29 homepage = https://github.com/haiwen/ccnet;
30 description = "A framework for writing networked applications in C";
31 license = stdenv.lib.licenses.gpl3Plus;
32 platforms = stdenv.lib.platforms.linux;
33 maintainers = [ stdenv.lib.maintainers.calrama ];
34 };
35}