10 stdenv.mkDerivation rec {
15 url = "mirror://apache/avro/avro-${version}/cpp/avro-cpp-${version}.tar.gz";
16 hash = "sha256-+6JCrvd+yBnQdWH8upN1FyGVbejQyujh8vMAtUszG64=";
19 # This patch fixes boost compatibility and can be removed when
20 # upgrading beyond 1.11.3 https://github.com/apache/avro/pull/1920
22 name = "fix-boost-compatibility.patch";
23 url = "https://github.com/apache/avro/commit/016323828f147f185d03f50d2223a2f50bfafce1.patch";
24 hash = "sha256-hP/5J2JzSplMvg8EjEk98Vim8DfTyZ4hZ/WGiVwvM1A=";
27 patchFlags = [ "-p3" ];
29 nativeBuildInputs = [ cmake python3 ];
30 buildInputs = [ boost ];
33 substituteInPlace test/SchemaTests.cc --replace "BOOST_CHECKPOINT" "BOOST_TEST_CHECKPOINT"
34 substituteInPlace test/buffertest.cc --replace "BOOST_MESSAGE" "BOOST_TEST_MESSAGE"
38 description = "C++ library which implements parts of the Avro Specification";
39 mainProgram = "avrogencpp";
40 homepage = "https://avro.apache.org/";
41 license = lib.licenses.asl20;
42 maintainers = with lib.maintainers; [ rasendubi ];
43 platforms = lib.platforms.all;