1{ stdenv, fetchFromGitHub, cmake }:
2
3stdenv.mkDerivation rec {
4 name = "flatbuffers-${version}";
5 version = "1.8.0";
6
7 src = fetchFromGitHub {
8 owner = "google";
9 repo = "flatbuffers";
10 rev = "v${version}";
11 sha256 = "1qq8qbv8wkiiizj8s984f17bsbjsrhbs9q1nw1yjgrw0grcxlsi9";
12 };
13
14 buildInputs = [ cmake ];
15 enableParallelBuilding = true;
16
17 # Not sure how tests are supposed to be run.
18 # "make: *** No rule to make target 'check'. Stop."
19 doCheck = false;
20
21 meta = {
22 description = "Memory Efficient Serialization Library.";
23 longDescription = ''
24 FlatBuffers is an efficient cross platform serialization library for
25 games and other memory constrained apps. It allows you to directly
26 access serialized data without unpacking/parsing it first, while still
27 having great forwards/backwards compatibility.
28 '';
29 maintainers = [ stdenv.lib.maintainers.teh ];
30 license = stdenv.lib.licenses.asl20;
31 platforms = stdenv.lib.platforms.unix;
32 homepage = http://google.github.io/flatbuffers;
33 };
34}