1{ lib
2, stdenv
3, fetchFromGitHub
4, autoreconfHook
5, pkg-config
6, python3
7, glib
8, jansson
9}:
10
11stdenv.mkDerivation rec {
12 version = "3.3-20230626";
13 commit = "783141fb694f3bd1f8bd8a783670dd25a53b9fc1";
14 pname = "libsearpc";
15
16 src = fetchFromGitHub {
17 owner = "haiwen";
18 repo = "libsearpc";
19 rev = commit;
20 sha256 = "sha256-nYYp3EyA8nufhbWaw4Lv/c4utGYaxC+PoFyamUEVJx4=";
21 };
22
23 nativeBuildInputs = [
24 autoreconfHook
25 pkg-config
26 python3
27 ];
28
29 propagatedBuildInputs = [
30 glib
31 jansson
32 ];
33
34 meta = with lib; {
35 homepage = "https://github.com/haiwen/libsearpc";
36 description = "Simple and easy-to-use C language RPC framework based on GObject System";
37 mainProgram = "searpc-codegen.py";
38 license = licenses.lgpl3;
39 platforms = platforms.linux;
40 maintainers = with maintainers; [ greizgh ];
41 };
42}