p4c: fix `gcc-13` build failure

Without the change build fails on `master` as
https://hydra.nixos.org/build/247605854:

In file included from /build/source/lib/hex.cpp:17:
/build/source/lib/hex.h:25:5: error: 'intmax_t' does not name a type; did you mean 'int8_t'?
25 | intmax_t val;
| ^~~~~~~~
| int8_t

+11
+11
pkgs/development/compilers/p4c/default.nix
··· 1 { lib 2 , stdenv 3 , fetchFromGitHub 4 , cmake 5 , boehmgc 6 , bison ··· 36 hash = "sha256-Whdryz1Gt0ymE7cj+mI95lW3Io9yBvLqcWa04gu5zEw="; 37 fetchSubmodules = true; 38 }; 39 40 postFetch = '' 41 rm -rf backends/ebpf/runtime/contrib/libbpf
··· 1 { lib 2 , stdenv 3 , fetchFromGitHub 4 + , fetchpatch 5 , cmake 6 , boehmgc 7 , bison ··· 37 hash = "sha256-Whdryz1Gt0ymE7cj+mI95lW3Io9yBvLqcWa04gu5zEw="; 38 fetchSubmodules = true; 39 }; 40 + 41 + patches = [ 42 + # Fix gcc-13 build: 43 + # https://github.com/p4lang/p4c/pull/4084 44 + (fetchpatch { 45 + name = "gcc-13.patch"; 46 + url = "https://github.com/p4lang/p4c/commit/6756816100b7c51e3bf717ec55114a8e8575ba1d.patch"; 47 + hash = "sha256-wWM1qjgQCNMPdrhQF38jzFgODUsAcaHTajdbV7L3y8o="; 48 + }) 49 + ]; 50 51 postFetch = '' 52 rm -rf backends/ebpf/runtime/contrib/libbpf