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"
This commit is contained in:
R. RyanTM 2018-10-20 06:33:09 -07:00 committed by Renaud
parent 43130899ab
commit 2be930cc4a

View File

@ -2,21 +2,24 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "flatbuffers-${version}"; name = "flatbuffers-${version}";
version = "1.8.0"; version = "1.10.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "google"; owner = "google";
repo = "flatbuffers"; repo = "flatbuffers";
rev = "v${version}"; rev = "v${version}";
sha256 = "1qq8qbv8wkiiizj8s984f17bsbjsrhbs9q1nw1yjgrw0grcxlsi9"; sha256 = "1b32kc5jp83l43w2gs1dkw2vqm2j0wi7xfxqa86m18n3l41ca734";
}; };
buildInputs = [ cmake ]; preConfigure = stdenv.lib.optional stdenv.buildPlatform.isDarwin ''
rm BUILD
'';
nativeBuildInputs = [ cmake ];
enableParallelBuilding = true; enableParallelBuilding = true;
# Not sure how tests are supposed to be run. doCheck = true;
# "make: *** No rule to make target 'check'. Stop." checkTarget = "test";
doCheck = false;
meta = { meta = {
description = "Memory Efficient Serialization Library."; description = "Memory Efficient Serialization Library.";
@ -29,6 +32,6 @@ stdenv.mkDerivation rec {
maintainers = [ stdenv.lib.maintainers.teh ]; maintainers = [ stdenv.lib.maintainers.teh ];
license = stdenv.lib.licenses.asl20; license = stdenv.lib.licenses.asl20;
platforms = stdenv.lib.platforms.unix; platforms = stdenv.lib.platforms.unix;
homepage = http://google.github.io/flatbuffers; homepage = https://google.github.io/flatbuffers/;
}; };
} }