add further dependencies

This commit is contained in:
Trolli Schmittlauch 2019-10-09 00:54:28 +02:00
parent 1a8a6b7927
commit 2011cc3c9a
4 changed files with 56 additions and 5 deletions

32
libsearpc/default.nix Normal file
View file

@ -0,0 +1,32 @@
{stdenv, fetchFromGitHub, automake, autoconf, pkgconfig, libtool, python2Packages, glib, jansson}:
stdenv.mkDerivation rec {
version = "3.2.0";
name = "libsearpc-${version}";
src = fetchFromGitHub {
owner = "haiwen";
repo = "libsearpc";
#rev = "v${version}";
rev = "v3.2-latest";
sha256 = "sha256:0qn5k6ckvd8hhiv4j6xj431qj8wwabfzlzhiccc0an8gxjsfgzsz";
};
patches = [ ./libsearpc.pc.patch ];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ automake autoconf libtool python2Packages.python python2Packages.simplejson ];
propagatedBuildInputs = [ glib jansson ];
postPatch = "patchShebangs autogen.sh";
preConfigure = "./autogen.sh";
meta = with stdenv.lib; {
homepage = https://github.com/haiwen/libsearpc;
description = "A simple and easy-to-use C language RPC framework (including both server side & client side) based on GObject System";
license = licenses.lgpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ schmittlauch ];
};
}

View file

@ -0,0 +1,10 @@
From: Aaron Lindsay <aaron@aclindsay.com>
--- a/libsearpc.pc.in 2013-01-10 01:35:24.000000000 -0500
+++ b/libsearpc.pc.in 2013-01-19 11:31:50.479301798 -0500
@@ -1,4 +1,4 @@
-prefix=(DESTDIR)@prefix@
+prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@