Loading pkgs/development/libraries/flatbuffers/23.nix 0 → 100644 +47 −0 Original line number Diff line number Diff line { 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; }; } pkgs/development/libraries/onnxruntime/default.nix +2 −3 Original line number Diff line number Diff line Loading @@ -2,13 +2,12 @@ , stdenv , lib , fetchFromGitHub , fetchpatch , Foundation , abseil-cpp , cmake , cpuinfo , eigen , flatbuffers , flatbuffers_23 , gbenchmark , glibcLocales , gtest Loading Loading @@ -184,7 +183,7 @@ effectiveStdenv.mkDerivation rec { "-DFETCHCONTENT_QUIET=OFF" "-DFETCHCONTENT_SOURCE_DIR_ABSEIL_CPP=${abseil-cpp.src}" "-DFETCHCONTENT_SOURCE_DIR_DATE=${howard-hinnant-date}" "-DFETCHCONTENT_SOURCE_DIR_FLATBUFFERS=${flatbuffers.src}" "-DFETCHCONTENT_SOURCE_DIR_FLATBUFFERS=${flatbuffers_23.src}" "-DFETCHCONTENT_SOURCE_DIR_GOOGLETEST=${gtest.src}" "-DFETCHCONTENT_SOURCE_DIR_GOOGLE_NSYNC=${nsync.src}" "-DFETCHCONTENT_SOURCE_DIR_MP11=${mp11}" Loading pkgs/top-level/all-packages.nix +1 −0 Original line number Diff line number Diff line Loading @@ -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; }; Loading
pkgs/development/libraries/flatbuffers/23.nix 0 → 100644 +47 −0 Original line number Diff line number Diff line { 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; }; }
pkgs/development/libraries/onnxruntime/default.nix +2 −3 Original line number Diff line number Diff line Loading @@ -2,13 +2,12 @@ , stdenv , lib , fetchFromGitHub , fetchpatch , Foundation , abseil-cpp , cmake , cpuinfo , eigen , flatbuffers , flatbuffers_23 , gbenchmark , glibcLocales , gtest Loading Loading @@ -184,7 +183,7 @@ effectiveStdenv.mkDerivation rec { "-DFETCHCONTENT_QUIET=OFF" "-DFETCHCONTENT_SOURCE_DIR_ABSEIL_CPP=${abseil-cpp.src}" "-DFETCHCONTENT_SOURCE_DIR_DATE=${howard-hinnant-date}" "-DFETCHCONTENT_SOURCE_DIR_FLATBUFFERS=${flatbuffers.src}" "-DFETCHCONTENT_SOURCE_DIR_FLATBUFFERS=${flatbuffers_23.src}" "-DFETCHCONTENT_SOURCE_DIR_GOOGLETEST=${gtest.src}" "-DFETCHCONTENT_SOURCE_DIR_GOOGLE_NSYNC=${nsync.src}" "-DFETCHCONTENT_SOURCE_DIR_MP11=${mp11}" Loading
pkgs/top-level/all-packages.nix +1 −0 Original line number Diff line number Diff line Loading @@ -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; };