summary refs log blame commit diff
path: root/pkgs/development/libraries/avro-c++/default.nix
blob: a2fdb66d7e953f34431789af266f712c9f578f7c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                           
 
                         

                     

                     


                                                                                
                                                                    



                 
           
         

    




                                                                                              









                                                                                   
{ stdenv, fetchurl, cmake, boost, python2}:

let version = "1.8.2"; in

stdenv.mkDerivation {
  pname = "avro-c++";
  inherit version;

  src = fetchurl {
    url = "mirror://apache/avro/avro-${version}/cpp/avro-cpp-${version}.tar.gz";
    sha256 = "1ars58bfw83s8f1iqbhnqp4n9wc9cxsph0gs2a8k7r9fi09vja2k";
  };

  buildInputs = [
    cmake
    python2
    boost
  ];

  preConfigure = ''
    substituteInPlace test/SchemaTests.cc --replace "BOOST_CHECKPOINT" "BOOST_TEST_CHECKPOINT"
    substituteInPlace test/buffertest.cc --replace "BOOST_MESSAGE" "BOOST_TEST_MESSAGE"
  '';

  enableParallelBuilding = true;

  meta = {
    description = "A C++ library which implements parts of the Avro Specification";
    homepage = https://avro.apache.org/;
    license = stdenv.lib.licenses.asl20;
    maintainers = with stdenv.lib.maintainers; [ rasendubi ];
    platforms = stdenv.lib.platforms.all;
  };
}