nixpkgs/pkgs/development/libraries/libjson-rpc-cpp/0.2.1/default.nix
artuuge 83fd63995a cpp_ethereum: init at 1.2.9
jsoncpp: 1.6.5 -> 1.7.2
libjson_rpc_cpp: 0.2.1 -> 0.6.0
argtable: init at 3.0.1
libcpuid: init at 0.2.2
2016-07-01 19:14:00 +02:00

31 lines
726 B
Nix

{ stdenv, fetchurl, cmake, curl }:
let
basename = "libjson-rpc-cpp";
version = "0.2.1";
in
stdenv.mkDerivation {
name = "${basename}-${version}";
src = fetchurl {
url = "https://github.com/cinemast/${basename}/archive/${version}.tar.gz";
sha256 = "1pc9nn4968qkda8vr4f9dijn2fcldm8i0ymwmql29h4cl5ghdnpw";
};
buildInputs = [ cmake curl ];
NIX_LDFLAGS = "-lpthread";
enableParallelBuilding = true;
doCheck = true;
checkPhase = "LD_LIBRARY_PATH=out/ ctest";
meta = {
description = "C++ framework for json-rpc (json remote procedure call)";
homepage = https://github.com/cinemast/libjson-rpc-cpp;
license = stdenv.lib.licenses.mit;
platforms = stdenv.lib.platforms.linux;
};
}