nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchFromGitHub, cmake }:
2
3stdenv.mkDerivation rec {
4 name = "flatbuffers-${version}";
5 version = "1.4.0";
6
7 src = fetchFromGitHub {
8 owner = "google";
9 repo = "flatbuffers";
10 rev = "v${version}";
11 sha256 = "0jsqk49h521d5h4c9gk39a8968g6rcd6520a8knbfc7ssc4028y0";
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}