Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
53 lines
1007 B
Nix
53 lines
1007 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
cmake,
|
|
boost,
|
|
python3,
|
|
fmt,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "avro-c++";
|
|
version = "1.12.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://apache/avro/avro-${version}/cpp/avro-cpp-${version}.tar.gz";
|
|
hash = "sha256-8u33cSanWw7BrRZncr4Fg1HOo9dESL5+LO8gBQwPmKs=";
|
|
};
|
|
|
|
patches = [
|
|
./0001-get-rid-of-fmt-fetchcontent.patch
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
python3
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
boost
|
|
fmt
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
nativeInstallCheckInputs = [
|
|
versionCheckHook
|
|
];
|
|
doInstallCheck = true;
|
|
versionCheckProgram = "${placeholder "out"}/bin/avrogencpp";
|
|
versionCheckProgramArg = "--version";
|
|
|
|
meta = {
|
|
description = "C++ library which implements parts of the Avro Specification";
|
|
mainProgram = "avrogencpp";
|
|
homepage = "https://avro.apache.org/";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ rasendubi ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|