Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

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"

authored by

R. RyanTM and committed by
Renaud
2be930cc 43130899

+10 -7
+10 -7
pkgs/development/libraries/flatbuffers/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "flatbuffers-${version}"; 5 - version = "1.8.0"; 5 + version = "1.10.0"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "google"; 9 9 repo = "flatbuffers"; 10 10 rev = "v${version}"; 11 - sha256 = "1qq8qbv8wkiiizj8s984f17bsbjsrhbs9q1nw1yjgrw0grcxlsi9"; 11 + sha256 = "1b32kc5jp83l43w2gs1dkw2vqm2j0wi7xfxqa86m18n3l41ca734"; 12 12 }; 13 13 14 - buildInputs = [ cmake ]; 14 + preConfigure = stdenv.lib.optional stdenv.buildPlatform.isDarwin '' 15 + rm BUILD 16 + ''; 17 + 18 + nativeBuildInputs = [ cmake ]; 15 19 enableParallelBuilding = true; 16 20 17 - # Not sure how tests are supposed to be run. 18 - # "make: *** No rule to make target 'check'. Stop." 19 - doCheck = false; 21 + doCheck = true; 22 + checkTarget = "test"; 20 23 21 24 meta = { 22 25 description = "Memory Efficient Serialization Library."; ··· 29 32 maintainers = [ stdenv.lib.maintainers.teh ]; 30 33 license = stdenv.lib.licenses.asl20; 31 34 platforms = stdenv.lib.platforms.unix; 32 - homepage = http://google.github.io/flatbuffers; 35 + homepage = https://google.github.io/flatbuffers/; 33 36 }; 34 37 }