lol
1{stdenv, fetchurl, automake, autoconf, pkgconfig, libtool, python2Packages, glib, jansson}:
2
3stdenv.mkDerivation rec
4{
5 version = "3.0.7";
6 seafileVersion = "6.1.0";
7 name = "libsearpc-${version}";
8
9 src = fetchurl
10 {
11 url = "https://github.com/haiwen/libsearpc/archive/v${version}.tar.gz";
12 sha256 = "0fdrgksdwd4qxp7qvh75y39dy52h2f5wfjbqr00h3rwkbx4npvpg";
13 };
14
15 patches = [ ./libsearpc.pc.patch ];
16
17 buildInputs = [ automake autoconf pkgconfig libtool python2Packages.python python2Packages.simplejson ];
18 propagatedBuildInputs = [ glib jansson ];
19
20 preConfigure = "./autogen.sh";
21
22 buildPhase = "make -j1";
23
24 meta =
25 {
26 homepage = https://github.com/haiwen/libsearpc;
27 description = "A simple and easy-to-use C language RPC framework (including both server side & client side) based on GObject System";
28 license = stdenv.lib.licenses.lgpl3;
29 platforms = stdenv.lib.platforms.linux;
30 maintainers = [ stdenv.lib.maintainers.calrama ];
31 };
32}