git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #109443 from jojosch/php8-protobuf

phpExtensions.protobuf: fix build with PHP 8

commit17631db07caeb9cfb6acefd6a91cdd995b5b3f3f authorElis Hirwing <elis@hirwing.se> dateFri 15 Jan 2021, 14:57 (6 years ago) parent979713948038eb
1 file changed+18−1
pkgs/development/php-packages/protobuf/default.nix+18−1
pkgs/development/php-packages/protobuf/default.nix+18−1
@@ -1,4 +1,4 @@
1−{ buildPecl, lib, pcre' }:
1+{ buildPecl, lib, pcre', fetchpatch }:
22
33buildPecl {
44 pname = "protobuf";
@@ -8,6 +8,23 @@ buildPecl {
88
99 buildInputs = [ pcre' ];
1010
11+ patches = [
12+ # TODO: remove with next update
13+ (fetchpatch {
14+ url = "https://github.com/protocolbuffers/protobuf/commit/823f351448f7c432bed40b89ee3309e0a94c1855.patch";
15+ sha256 = "sha256-ozHtO8s9zvmh/+wBEge3Yn3n0pbpR3dAojJcuAg/G3s=";
16+ stripLen = 4;
17+ includes = [
18+ "array.c"
19+ "def.c"
20+ "map.c"
21+ "message.c"
22+ "protobuf.h"
23+ "wkt.inc"
24+ ];
25+ })
26+ ];
27+
1128 meta = with lib; {
1229 description = ''
1330 Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data.