diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/avro-c++')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/avro-c++/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/avro-c++/default.nix b/nixpkgs/pkgs/development/libraries/avro-c++/default.nix new file mode 100644 index 000000000000..743740fddb0d --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/avro-c++/default.nix @@ -0,0 +1,27 @@ +{ lib, stdenv, fetchurl, cmake, boost, python3 }: + +stdenv.mkDerivation rec { + pname = "avro-c++"; + version = "1.10.2"; + + src = fetchurl { + url = "mirror://apache/avro/avro-${version}/cpp/avro-cpp-${version}.tar.gz"; + sha256 = "1qv2wxh5q2iq48m5g3xci9p05znzcl0v3314bhcsyr5bkpdjvzs1"; + }; + + nativeBuildInputs = [ cmake python3 ]; + buildInputs = [ boost ]; + + preConfigure = '' + substituteInPlace test/SchemaTests.cc --replace "BOOST_CHECKPOINT" "BOOST_TEST_CHECKPOINT" + substituteInPlace test/buffertest.cc --replace "BOOST_MESSAGE" "BOOST_TEST_MESSAGE" + ''; + + meta = { + description = "A C++ library which implements parts of the Avro Specification"; + homepage = "https://avro.apache.org/"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ rasendubi ]; + platforms = lib.platforms.all; + }; +} |