2016-10-20 13:36:59 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "flatbuffers-${version}";
|
2018-10-20 13:33:09 +00:00
|
|
|
version = "1.10.0";
|
2016-10-20 13:36:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "flatbuffers";
|
|
|
|
rev = "v${version}";
|
2018-10-20 13:33:09 +00:00
|
|
|
sha256 = "1b32kc5jp83l43w2gs1dkw2vqm2j0wi7xfxqa86m18n3l41ca734";
|
2016-10-20 13:36:59 +00:00
|
|
|
};
|
|
|
|
|
2018-10-20 13:33:09 +00:00
|
|
|
preConfigure = stdenv.lib.optional stdenv.buildPlatform.isDarwin ''
|
|
|
|
rm BUILD
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2016-10-20 13:36:59 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2018-10-20 13:33:09 +00:00
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
2016-10-20 13:36:59 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
maintainers = [ stdenv.lib.maintainers.teh ];
|
|
|
|
license = stdenv.lib.licenses.asl20;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2018-10-20 13:33:09 +00:00
|
|
|
homepage = https://google.github.io/flatbuffers/;
|
2016-10-20 13:36:59 +00:00
|
|
|
};
|
|
|
|
}
|