Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, cmake, boost, python3 }: 2 3stdenv.mkDerivation rec { 4 pname = "avro-c++"; 5 version = "1.11.0"; 6 7 src = fetchurl { 8 url = "mirror://apache/avro/avro-${version}/cpp/avro-cpp-${version}.tar.gz"; 9 sha256 = "sha256-73DKihz+7XAX3LLA7VkTdN6rFhuGvmyksxK8JMranFY="; 10 }; 11 12 nativeBuildInputs = [ cmake python3 ]; 13 buildInputs = [ boost ]; 14 15 preConfigure = '' 16 substituteInPlace test/SchemaTests.cc --replace "BOOST_CHECKPOINT" "BOOST_TEST_CHECKPOINT" 17 substituteInPlace test/buffertest.cc --replace "BOOST_MESSAGE" "BOOST_TEST_MESSAGE" 18 ''; 19 20 meta = { 21 description = "A C++ library which implements parts of the Avro Specification"; 22 homepage = "https://avro.apache.org/"; 23 license = lib.licenses.asl20; 24 maintainers = with lib.maintainers; [ rasendubi ]; 25 platforms = lib.platforms.all; 26 }; 27}