2016-10-22 16:23:24 +01:00
|
|
|
{ stdenv, fetchurl, cmake, boost, python2}:
|
2016-04-19 00:47:56 +01:00
|
|
|
|
2016-10-21 16:35:26 +01:00
|
|
|
let version = "1.8.1"; in
|
2016-04-19 00:47:56 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "avro-c++-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://apache/avro/avro-${version}/cpp/avro-cpp-${version}.tar.gz";
|
2016-10-21 16:35:26 +01:00
|
|
|
sha256 = "6559755ac525e908e42a2aa43444576cba91e522fe989088ee7f70c169bcc403";
|
2016-04-19 00:47:56 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cmake
|
2016-10-18 08:09:21 +01:00
|
|
|
python2
|
2016-10-21 16:35:26 +01:00
|
|
|
boost
|
2016-04-19 00:47:56 +01:00
|
|
|
];
|
|
|
|
|
2016-10-21 16:35:26 +01:00
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace test/SchemaTests.cc --replace "BOOST_CHECKPOINT" "BOOST_TEST_CHECKPOINT"
|
|
|
|
substituteInPlace test/buffertest.cc --replace "BOOST_MESSAGE" "BOOST_TEST_MESSAGE"
|
|
|
|
'';
|
|
|
|
|
2016-04-19 00:47:56 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A C++ library which implements parts of the Avro Specification";
|
|
|
|
homepage = https://avro.apache.org/;
|
|
|
|
license = stdenv.lib.licenses.asl20;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ rasendubi ];
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|