libjson-rpc-cpp: 0.6.0 -> 0.7.0, fix build

This commit is contained in:
Robin Gloster 2017-02-28 17:11:32 +01:00
parent 4c04d4e6e2
commit efd9331333
No known key found for this signature in database
GPG Key ID: 5E4C836C632C2882
3 changed files with 17 additions and 22 deletions

View File

@ -1,26 +1,21 @@
{ stdenv
, fetchgit
, cmake
, jsoncpp
, argtable
, curl
, libmicrohttpd
, doxygen
, catch
{ stdenv, fetchFromGitHub, cmake, jsoncpp, argtable, curl, libmicrohttpd
, doxygen, catch, pkgconfig, git, gcc6
}:
stdenv.mkDerivation rec {
name = "libjson-rpc-cpp-${version}";
version = "0.6.0";
version = "0.7.0";
src = fetchgit {
url = https://github.com/cinemast/libjson-rpc-cpp.git;
sha256 = "00fxxisg89zgg1wq047n8r8ws48jx35x3s6bbym4kg7dkxv9vv9f";
rev = "c6e3d7195060774bf95afc6df9c9588922076d3e";
src = fetchFromGitHub {
owner = "cinemast";
repo = "libjson-rpc-cpp";
sha256 = "07bg4nyvx0yyhy8c4x9i22kwqpx5jlv36dvpabgbb46ayyndhr7a";
rev = "v${version}";
};
hardeningDisable = [ "format" ];
NIX_CFLAGS_COMPILE = "-I${catch}/include/catch";
patchPhase = ''
postPatch = ''
for f in cmake/FindArgtable.cmake \
src/stubgenerator/stubgenerator.cpp \
src/stubgenerator/stubgeneratorfactory.cpp
@ -44,7 +39,7 @@ stdenv.mkDerivation rec {
function fixRunPath {
p=$(patchelf --print-rpath $1)
q="$p:${stdenv.lib.makeLibraryPath [ stdenv.cc.cc jsoncpp argtable libmicrohttpd curl ]}:$out/lib"
q="$p:${stdenv.lib.makeLibraryPath [ gcc6 jsoncpp argtable libmicrohttpd curl ]}:$out/lib"
patchelf --set-rpath $q $1
}
@ -58,8 +53,7 @@ stdenv.mkDerivation rec {
cp -r Install/* $out
'';
dontStrip = true;
nativeBuildInputs = [ pkgconfig gcc6 ];
buildInputs = [ cmake jsoncpp argtable curl libmicrohttpd doxygen catch ];
meta = with stdenv.lib; {

View File

@ -75,6 +75,7 @@ doNotDisplayTwice rec {
libcap_manpages = libcap.doc; # added 2016-04-29
libcap_pam = if stdenv.isLinux then libcap.pam else null; # added 2016-04-29
libcap_progs = libcap.out; # added 2016-04-29
libjson_rpc_cpp = libjson-rpc-cpp; # added 2017-02-28
libtidy = html-tidy; # added 2014-12-21
links = links2; # added 2016-01-31
lttngTools = lttng-tools; # added 2014-07-31

View File

@ -8427,7 +8427,7 @@ with pkgs;
libjreen = callPackage ../development/libraries/libjreen { };
libjson_rpc_cpp = callPackage ../development/libraries/libjson-rpc-cpp { };
libjson-rpc-cpp = callPackage ../development/libraries/libjson-rpc-cpp { };
libjson_rpc_cpp_0_2_1 = callPackage ../development/libraries/libjson-rpc-cpp/0.2.1 { };