nixpkgs/pkgs/development/libraries/avro-c++/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
845 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, cmake, boost, python3 }:
2016-04-18 23:47:56 +00:00
2021-07-17 18:37:27 +00:00
stdenv.mkDerivation rec {
2019-08-13 21:52:01 +00:00
pname = "avro-c++";
2021-07-06 08:57:02 +00:00
version = "1.10.2";
2016-04-18 23:47:56 +00:00
src = fetchurl {
url = "mirror://apache/avro/avro-${version}/cpp/avro-cpp-${version}.tar.gz";
2021-07-06 08:57:02 +00:00
sha256 = "1qv2wxh5q2iq48m5g3xci9p05znzcl0v3314bhcsyr5bkpdjvzs1";
2016-04-18 23:47:56 +00:00
};
nativeBuildInputs = [ cmake python3 ];
buildInputs = [ boost ];
2016-04-18 23:47:56 +00:00
preConfigure = ''
substituteInPlace test/SchemaTests.cc --replace "BOOST_CHECKPOINT" "BOOST_TEST_CHECKPOINT"
substituteInPlace test/buffertest.cc --replace "BOOST_MESSAGE" "BOOST_TEST_MESSAGE"
'';
2016-04-18 23:47:56 +00:00
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;
2016-04-18 23:47:56 +00:00
};
}