lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

flatbuffers: 1.12.0 -> 2.0.0

+81 -56
+26
pkgs/development/libraries/flatbuffers/1.12.nix
··· 1 + { callPackage, fetchpatch, lib, stdenv }: 2 + 3 + callPackage ./generic.nix { 4 + version = "1.12.0"; 5 + sha256 = "0f7xd66vc1lzjbn7jzd5kyqrgxpsfxi4zc7iymhb5xrwyxipjl1g"; 6 + 7 + patches = [ 8 + (fetchpatch { 9 + # Fixed a compilation error with GCC 10.0 to 11.0. June 1, 2020. 10 + # Should be included in the next release after 1.12.0 11 + url = "https://github.com/google/flatbuffers/commit/988164f6e1675bbea9c852e2d6001baf4d1fcf59.patch"; 12 + sha256 = "0d8c2bywqmkhdi0a41cry85wy4j58pl0vd6h5xpfqm3fr8w0mi9s"; 13 + excludes = [ "src/idl_gen_cpp.cpp" ]; 14 + }) 15 + (fetchpatch { 16 + # Fixed a compilation error with GCC 10.0 to 11.0. July 6, 2020. 17 + # Should be included in the next release after 1.12.0 18 + url = "https://github.com/google/flatbuffers/pull/6020/commits/44c7a4cf439b0a298720b5a448bcc243a882b0c9.patch"; 19 + sha256 = "126xwkvnlc4ignjhxv9jygfd9j6kr1jx39hyk0ddpcmvzfqsccf4"; 20 + }) 21 + ]; 22 + 23 + preConfigure = lib.optional stdenv.buildPlatform.isDarwin '' 24 + rm BUILD 25 + ''; 26 + }
+6
pkgs/development/libraries/flatbuffers/2.0.nix
··· 1 + { callPackage }: 2 + 3 + callPackage ./generic.nix { 4 + version = "2.0.0"; 5 + sha256 = "1zbf6bdpps8369r1ql00irxrp58jnalycc8jcapb8iqg654vlfz8"; 6 + }
-55
pkgs/development/libraries/flatbuffers/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, fetchpatch, cmake }: 2 - 3 - stdenv.mkDerivation rec { 4 - pname = "flatbuffers"; 5 - version = "1.12.0"; 6 - 7 - src = fetchFromGitHub { 8 - owner = "google"; 9 - repo = "flatbuffers"; 10 - rev = "v${version}"; 11 - sha256 = "0f7xd66vc1lzjbn7jzd5kyqrgxpsfxi4zc7iymhb5xrwyxipjl1g"; 12 - }; 13 - patches = [ 14 - (fetchpatch { 15 - # Fixed a compilation error with GCC 10.0 to 11.0. June 1, 2020. 16 - # Should be included in the next release after 1.12.0 17 - url = "https://github.com/google/flatbuffers/commit/988164f6e1675bbea9c852e2d6001baf4d1fcf59.patch"; 18 - sha256 = "0d8c2bywqmkhdi0a41cry85wy4j58pl0vd6h5xpfqm3fr8w0mi9s"; 19 - excludes = [ "src/idl_gen_cpp.cpp" ]; 20 - }) 21 - (fetchpatch { 22 - # Fixed a compilation error with GCC 10.0 to 11.0. July 6, 2020. 23 - # Should be included in the next release after 1.12.0 24 - url = "https://github.com/google/flatbuffers/pull/6020/commits/44c7a4cf439b0a298720b5a448bcc243a882b0c9.patch"; 25 - sha256 = "126xwkvnlc4ignjhxv9jygfd9j6kr1jx39hyk0ddpcmvzfqsccf4"; 26 - }) 27 - ]; 28 - 29 - preConfigure = lib.optional stdenv.buildPlatform.isDarwin '' 30 - rm BUILD 31 - ''; 32 - 33 - nativeBuildInputs = [ cmake ]; 34 - 35 - cmakeFlags = [ "-DFLATBUFFERS_BUILD_TESTS=${if doCheck then "ON" else "OFF"}" ]; 36 - 37 - # tests fail to compile 38 - doCheck = false; 39 - # doCheck = stdenv.hostPlatform == stdenv.buildPlatform; 40 - checkTarget = "test"; 41 - 42 - meta = with lib; { 43 - description = "Memory Efficient Serialization Library"; 44 - longDescription = '' 45 - FlatBuffers is an efficient cross platform serialization library for 46 - games and other memory constrained apps. It allows you to directly 47 - access serialized data without unpacking/parsing it first, while still 48 - having great forwards/backwards compatibility. 49 - ''; 50 - maintainers = [ maintainers.teh ]; 51 - license = licenses.asl20; 52 - platforms = platforms.unix; 53 - homepage = "https://google.github.io/flatbuffers/"; 54 - }; 55 - }
+46
pkgs/development/libraries/flatbuffers/generic.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , cmake 5 + , version 6 + , sha256 7 + , patches ? [ ] 8 + , preConfigure ? null 9 + }: 10 + 11 + stdenv.mkDerivation rec { 12 + pname = "flatbuffers"; 13 + inherit version; 14 + 15 + src = fetchFromGitHub { 16 + owner = "google"; 17 + repo = "flatbuffers"; 18 + rev = "v${version}"; 19 + inherit sha256; 20 + }; 21 + 22 + inherit patches preConfigure; 23 + 24 + nativeBuildInputs = [ cmake ]; 25 + 26 + cmakeFlags = [ 27 + "-DFLATBUFFERS_BUILD_TESTS=${if doCheck then "ON" else "OFF"}" 28 + ]; 29 + 30 + doCheck = stdenv.hostPlatform == stdenv.buildPlatform; 31 + checkTarget = "test"; 32 + 33 + meta = with lib; { 34 + description = "Memory Efficient Serialization Library"; 35 + longDescription = '' 36 + FlatBuffers is an efficient cross platform serialization library for 37 + games and other memory constrained apps. It allows you to directly 38 + access serialized data without unpacking/parsing it first, while still 39 + having great forwards/backwards compatibility. 40 + ''; 41 + maintainers = [ maintainers.teh ]; 42 + license = licenses.asl20; 43 + platforms = platforms.unix; 44 + homepage = "https://google.github.io/flatbuffers/"; 45 + }; 46 + }
+3 -1
pkgs/top-level/all-packages.nix
··· 17614 17614 17615 17615 protozero = callPackage ../development/libraries/protozero { }; 17616 17616 17617 - flatbuffers = callPackage ../development/libraries/flatbuffers { }; 17617 + flatbuffers = flatbuffers_2_0; 17618 + flatbuffers_2_0 = callPackage ../development/libraries/flatbuffers/2.0.nix { }; 17619 + flatbuffers_1_12 = callPackage ../development/libraries/flatbuffers/1.12.nix { }; 17618 17620 17619 17621 nanopb = callPackage ../development/libraries/nanopb { }; 17620 17622