9 stdenv.mkDerivation rec {
10 pname = "flatbuffers";
13 src = fetchFromGitHub {
17 hash = "sha256-e+dNPNbCHYDXUS/W+hMqf/37fhVgEGzId6rhP3cToTE=";
26 "-DFLATBUFFERS_BUILD_TESTS=${if doCheck then "ON" else "OFF"}"
27 "-DFLATBUFFERS_OSX_BUILD_UNIVERSAL=OFF"
30 doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
34 description = "Memory Efficient Serialization Library";
36 FlatBuffers is an efficient cross platform serialization library for
37 games and other memory constrained apps. It allows you to directly
38 access serialized data without unpacking/parsing it first, while still
39 having great forwards/backwards compatibility.
41 homepage = "https://google.github.io/flatbuffers/";
42 license = licenses.asl20;
43 maintainers = [ maintainers.teh ];
44 mainProgram = "flatc";
45 platforms = platforms.unix;