nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{stdenv, fetchFromGitHub, automake, autoconf, pkgconfig, libtool, python2Packages, glib, jansson}:
2
3stdenv.mkDerivation rec {
4 version = "3.2.0";
5 pname = "libsearpc";
6
7 src = fetchFromGitHub {
8 owner = "haiwen";
9 repo = "libsearpc";
10 rev = "v${version}";
11 sha256 = "18i5zvrp6dv6vygxx5nc93mai2p2x786n5lnf5avrin6xiz2j6hd";
12 };
13
14 patches = [ ./libsearpc.pc.patch ];
15
16 nativeBuildInputs = [ pkgconfig ];
17 buildInputs = [ automake autoconf libtool python2Packages.python python2Packages.simplejson ];
18 propagatedBuildInputs = [ glib jansson ];
19
20 postPatch = "patchShebangs autogen.sh";
21
22 preConfigure = "./autogen.sh";
23
24 meta = with stdenv.lib; {
25 homepage = https://github.com/haiwen/libsearpc;
26 description = "A simple and easy-to-use C language RPC framework (including both server side & client side) based on GObject System";
27 license = licenses.lgpl3;
28 platforms = platforms.linux;
29 maintainers = with maintainers; [ ];
30 };
31}