nixpkgs/pkgs/development/libraries/flatbuffers/default.nix
R. RyanTM 2be930cc4a flatbuffers: 1.8.0 -> 1.10.0 (#48521)
* flatbuffers: 1.8.0 -> 1.10.0

Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/flatbuffers/versions

* flatbuffers: fix build on Darwin and enable checks

Bazel BUILD file is conflicting with build directory on case-insensitive FS
+ checkPhase now runs "make test"
2018-10-20 15:33:09 +02:00

37 lines
1 KiB
Nix

{ stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
name = "flatbuffers-${version}";
version = "1.10.0";
src = fetchFromGitHub {
owner = "google";
repo = "flatbuffers";
rev = "v${version}";
sha256 = "1b32kc5jp83l43w2gs1dkw2vqm2j0wi7xfxqa86m18n3l41ca734";
};
preConfigure = stdenv.lib.optional stdenv.buildPlatform.isDarwin ''
rm BUILD
'';
nativeBuildInputs = [ cmake ];
enableParallelBuilding = true;
doCheck = true;
checkTarget = "test";
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;
homepage = https://google.github.io/flatbuffers/;
};
}