3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/avro-c++/default.nix

35 lines
901 B
Nix
Raw Normal View History

{ stdenv, fetchurl, cmake, boost, python2}:
2016-04-19 00:47:56 +01:00
2017-09-05 12:46:51 +01:00
let version = "1.8.2"; in
2016-04-19 00:47:56 +01:00
stdenv.mkDerivation {
2019-08-13 22:52:01 +01:00
pname = "avro-c++";
inherit version;
2016-04-19 00:47:56 +01:00
src = fetchurl {
url = "mirror://apache/avro/avro-${version}/cpp/avro-cpp-${version}.tar.gz";
2017-09-05 12:46:51 +01:00
sha256 = "1ars58bfw83s8f1iqbhnqp4n9wc9cxsph0gs2a8k7r9fi09vja2k";
2016-04-19 00:47:56 +01:00
};
buildInputs = [
cmake
python2
boost
2016-04-19 00:47:56 +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/";
2016-04-19 00:47:56 +01:00
license = stdenv.lib.licenses.asl20;
maintainers = with stdenv.lib.maintainers; [ rasendubi ];
platforms = stdenv.lib.platforms.all;
};
}