mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 02:34:53 +00:00
57 lines
1.2 KiB
Nix
57 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
cmake,
|
|
boost,
|
|
python3,
|
|
fmt,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "avro-c++";
|
|
version = "1.12.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://apache/avro/avro-${finalAttrs.version}/cpp/avro-cpp-${finalAttrs.version}.tar.gz";
|
|
hash = "sha256-8u33cSanWw7BrRZncr4Fg1HOo9dESL5+LO8gBQwPmKs=";
|
|
};
|
|
|
|
# TODO: remove fmt formatter patches when updating to next version
|
|
# Patches exist upstream but don't apply cleanly.
|
|
patches = [
|
|
./0001-get-rid-of-fmt-fetchcontent.patch
|
|
./0002-fix-fmt-name-formatter.patch
|
|
./0003-fix-fmt-type-formatter.patch
|
|
./0004-remove-boost-system-component.patch
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
python3
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
boost
|
|
fmt
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
nativeInstallCheckInputs = [
|
|
versionCheckHook
|
|
];
|
|
doInstallCheck = true;
|
|
versionCheckProgram = "${placeholder "out"}/bin/avrogencpp";
|
|
|
|
meta = {
|
|
description = "C++ library which implements parts of the Avro Specification";
|
|
mainProgram = "avrogencpp";
|
|
homepage = "https://avro.apache.org/";
|
|
license = lib.licenses.asl20;
|
|
maintainers = [ ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|