flatbuffers_23: init at 23.5.26

Required at least for onnxruntime, which asserts hard on this version.
This commit is contained in:
Martin Weinelt 2024-07-27 14:34:44 +02:00
parent 614efe64e8
commit 6e7c87e6f3
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,47 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
python3,
}:
stdenv.mkDerivation rec {
pname = "flatbuffers";
version = "23.5.26";
src = fetchFromGitHub {
owner = "google";
repo = "flatbuffers";
rev = "v${version}";
hash = "sha256-e+dNPNbCHYDXUS/W+hMqf/37fhVgEGzId6rhP3cToTE=";
};
nativeBuildInputs = [
cmake
python3
];
cmakeFlags = [
"-DFLATBUFFERS_BUILD_TESTS=${if doCheck then "ON" else "OFF"}"
"-DFLATBUFFERS_OSX_BUILD_UNIVERSAL=OFF"
];
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
checkTarget = "test";
meta = with lib; {
description = "Memory Efficient Serialization Library";
longDescription = ''
FlatBuffers is an efficient cross platform serialization library for
games and other memory constrained apps. It allows you to directly
access serialized data without unpacking/parsing it first, while still
having great forwards/backwards compatibility.
'';
homepage = "https://google.github.io/flatbuffers/";
license = licenses.asl20;
maintainers = [ maintainers.teh ];
mainProgram = "flatc";
platforms = platforms.unix;
};
}

View File

@ -23563,6 +23563,7 @@ with pkgs;
protozero = callPackage ../development/libraries/protozero { };
flatbuffers = callPackage ../development/libraries/flatbuffers { };
flatbuffers_23 = callPackage ../development/libraries/flatbuffers/23.nix { };
nanopbMalloc = callPackage ../by-name/na/nanopb/package.nix { enableMalloc = true; };