lol

Merge pull request #109443 from jojosch/php8-protobuf

phpExtensions.protobuf: fix build with PHP 8

authored by

Elis Hirwing and committed by
GitHub
17631db0 9797139c

+18 -1
+18 -1
pkgs/development/php-packages/protobuf/default.nix
··· 1 - { buildPecl, lib, pcre' }: 1 + { buildPecl, lib, pcre', fetchpatch }: 2 2 3 3 buildPecl { 4 4 pname = "protobuf"; ··· 7 7 sha256 = "1ldc4s28hq61cfg8l4c06pgicj0ng7k37f28a0dnnbs7xkr7cibd"; 8 8 9 9 buildInputs = [ pcre' ]; 10 + 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 + ]; 10 27 11 28 meta = with lib; { 12 29 description = ''