@@ -1,4 +1,5 @@
1−{lib, stdenv, fetchFromGitHub, automake, autoconf, pkg-config, libtool, python2Packages, glib, jansson}:
1+{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, python3Packages
2+, glib, jansson }:
23
34stdenv.mkDerivation rec {
45 version = "3.2.0";
@@ -11,21 +12,15 @@ stdenv.mkDerivation rec {
1112 sha256 = "18i5zvrp6dv6vygxx5nc93mai2p2x786n5lnf5avrin6xiz2j6hd";
1213 };
1314
14− patches = [ ./libsearpc.pc.patch ];
15−
16− nativeBuildInputs = [ pkg-config ];
17− buildInputs = [ automake autoconf libtool python2Packages.python python2Packages.simplejson ];
15+ nativeBuildInputs = [ autoreconfHook pkg-config ];
16+ buildInputs = with python3Packages; [ python simplejson ];
1817 propagatedBuildInputs = [ glib jansson ];
1918
20− postPatch = "patchShebangs autogen.sh";
21−
22− preConfigure = "./autogen.sh";
23−
2419 meta = with lib; {
2520 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";
21+ description = "A simple and easy-to-use C language RPC framework based on GObject System";
2722 license = licenses.lgpl3;
2823 platforms = platforms.linux;
29− maintainers = with maintainers; [ ];
24+ maintainers = with maintainers; [ greizgh ];
3025 };
3126}