2021-12-06 07:39:23 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake, boost, python3 }:
|
2016-04-19 00:47:56 +01:00
|
|
|
|
2021-07-17 19:37:27 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "avro-c++";
|
2022-06-04 05:20:00 +01:00
|
|
|
version = "1.11.0";
|
2016-04-19 00:47:56 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://apache/avro/avro-${version}/cpp/avro-cpp-${version}.tar.gz";
|
2022-06-04 05:20:00 +01:00
|
|
|
sha256 = "sha256-73DKihz+7XAX3LLA7VkTdN6rFhuGvmyksxK8JMranFY=";
|
2016-04-19 00:47:56 +01:00
|
|
|
};
|
|
|
|
|
2021-12-06 07:39:23 +00:00
|
|
|
nativeBuildInputs = [ cmake python3 ];
|
|
|
|
buildInputs = [ 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
|
|
|
meta = {
|
|
|
|
description = "A C++ library which implements parts of the Avro Specification";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://avro.apache.org/";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ rasendubi ];
|
|
|
|
platforms = lib.platforms.all;
|
2016-04-19 00:47:56 +01:00
|
|
|
};
|
|
|
|
}
|