git.iko.soy/typeable/nixpkgs
on master help sign in
libsearpc: build python3 package (#119366)
commitb94e3aa0f26b1fb6deac5cfe45ffe7115b727d0c authorgreizgh <greizgh@ephax.org> dateWed 14 Apr 2021, 01:18 (6 years ago) parent1562f6a
2 files changed+6−21
pkgs/development/libraries/libsearpc/default.nix+6−11 pkgs/development/libraries/libsearpc/libsearpc.pc.patch−10
pkgs/development/libraries/libsearpc/default.nix+6−11
@@ -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}
pkgs/development/libraries/libsearpc/libsearpc.pc.patchdeleted−10
@@ -1,10 +0,0 @@
1−From: Aaron Lindsay <aaron@aclindsay.com>
2−
3−--- a/libsearpc.pc.in 2013-01-10 01:35:24.000000000 -0500
4−+++ b/libsearpc.pc.in 2013-01-19 11:31:50.479301798 -0500
5−@@ -1,4 +1,4 @@
6−-prefix=(DESTDIR)@prefix@
7−+prefix=@prefix@
8− exec_prefix=@exec_prefix@
9− libdir=@libdir@
10− includedir=@includedir@