2013-10-14 15:11:46 +01:00
|
|
|
{ stdenv, fetchurl, cmake, curl }:
|
|
|
|
|
|
|
|
let
|
2013-12-13 16:33:13 +00:00
|
|
|
basename = "libjson-rpc-cpp";
|
2013-10-14 15:11:46 +01:00
|
|
|
version = "0.2.1";
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2013-12-13 16:33:13 +00:00
|
|
|
name = "${basename}-${version}";
|
2013-10-14 15:11:46 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-12-13 16:33:13 +00:00
|
|
|
url = "https://github.com/cinemast/${basename}/archive/${version}.tar.gz";
|
2013-10-14 15:11:46 +01:00
|
|
|
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)";
|
2013-12-13 16:33:13 +00:00
|
|
|
homepage = https://github.com/cinemast/libjson-rpc-cpp;
|
|
|
|
license = stdenv.lib.licenses.mit;
|
2013-10-14 15:11:46 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|