Merge pull request #19755 from bzizou/avro-cpp

avro-cpp: 1.7.5 -> 1.8.1 + using boost 1.55 -> 1.60
This commit is contained in:
Tim Steinbach 2016-10-21 13:07:49 -04:00 committed by GitHub
commit d5b057335b
2 changed files with 10 additions and 5 deletions

View File

@ -1,22 +1,27 @@
{ stdenv, fetchurl, cmake, boost155, pythonPackages
{ stdenv, fetchurl, cmake, boost, pythonPackages
}:
let version = "1.7.5"; in
let version = "1.8.1"; in
stdenv.mkDerivation {
name = "avro-c++-${version}";
src = fetchurl {
url = "mirror://apache/avro/avro-${version}/cpp/avro-cpp-${version}.tar.gz";
sha256 = "064ssbbgrc3hyalzj8rn119bsrnyk1vlpkhl8gghv96jgqbpdyb3";
sha256 = "6559755ac525e908e42a2aa43444576cba91e522fe989088ee7f70c169bcc403";
};
buildInputs = [
cmake
boost155
boost
pythonPackages.python
];
preConfigure = ''
substituteInPlace test/SchemaTests.cc --replace "BOOST_CHECKPOINT" "BOOST_TEST_CHECKPOINT"
substituteInPlace test/buffertest.cc --replace "BOOST_MESSAGE" "BOOST_TEST_MESSAGE"
'';
enableParallelBuilding = true;
meta = {

View File

@ -564,7 +564,7 @@ in
qt4Support = config.avahi.qt4Support or false;
};
avro-cpp = callPackage ../development/libraries/avro-c++ { };
avro-cpp = callPackage ../development/libraries/avro-c++ { boost = boost160; };
aws = callPackage ../tools/virtualization/aws { };