2018-06-26 22:51:11 +01:00
|
|
|
{stdenv, fetchFromGitHub, automake, autoconf, pkgconfig, libtool, python2Packages, glib, jansson}:
|
2014-02-04 19:02:46 +00:00
|
|
|
|
2018-06-26 22:51:11 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "3.0.8";
|
2014-02-04 19:02:46 +00:00
|
|
|
name = "libsearpc-${version}";
|
|
|
|
|
2018-06-26 22:51:11 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "haiwen";
|
|
|
|
repo = "libsearpc";
|
|
|
|
# Tag is missing: https://github.com/haiwen/libsearpc/commit/12a01268825e9c7e17794c58c367e3b4db912ad9
|
|
|
|
rev = "12a01268825e9c7e17794c58c367e3b4db912ad9";
|
|
|
|
sha256 = "00ck1hl1x0pn22q3ba32dq3ckc4nrsg58irsmrnmalqbsffhcim0";
|
2014-02-04 19:02:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./libsearpc.pc.patch ];
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ automake autoconf libtool python2Packages.python python2Packages.simplejson ];
|
2014-02-04 19:02:46 +00:00
|
|
|
propagatedBuildInputs = [ glib jansson ];
|
|
|
|
|
2018-06-26 22:51:11 +01:00
|
|
|
postPatch = "patchShebangs autogen.sh";
|
|
|
|
|
2014-02-04 19:02:46 +00:00
|
|
|
preConfigure = "./autogen.sh";
|
|
|
|
|
|
|
|
buildPhase = "make -j1";
|
|
|
|
|
2018-06-26 22:51:11 +01:00
|
|
|
meta = {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://github.com/haiwen/libsearpc;
|
2014-11-11 13:20:43 +00:00
|
|
|
description = "A simple and easy-to-use C language RPC framework (including both server side & client side) based on GObject System";
|
2014-02-04 19:02:46 +00:00
|
|
|
license = stdenv.lib.licenses.lgpl3;
|
2014-02-28 16:10:43 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2018-03-10 23:46:41 +00:00
|
|
|
maintainers = [ ];
|
2014-02-04 19:02:46 +00:00
|
|
|
};
|
2014-05-24 02:32:02 +01:00
|
|
|
}
|