···2525 # However, the version string is more useful for end-users.
2626 # These are contained in a attrset of their own to make it obvious that
2727 # people should update both.
2828- version = "1.27.5";
2929- rev = "be4f1cfd31c79fc05651efa2f88429b3c03d1d9e";
3030- hash = "sha256-+sjNqq91YfyW83aq/8WoSo7Jl5QZUmtWtsajnLLMgDc=";
2828+ version = "1.30.1";
2929+ rev = "816188b86a0a52095b116b107f576324082c7c02";
3030+ hash = "sha256-G0rT+OfMk2nitTXcxMr04jwUMYTfb4VBEV1zftalgFU=";
3131 };
32323333 # these need to be updated for any changes to fetchAttrs
3434 depsHash = {
3535- x86_64-linux = "sha256-4XJgPfNEPmbvAZMLlQcnIaoGzaFtyhsuEshdEjLh0OY=";
3636- aarch64-linux = "sha256-85HLiK+xX/tabazh97J4fWk5KYc7kynbxj/g8HCGTD4=";
3535+ x86_64-linux = "sha256-Pj176fQts/H+BlzsVkx+OlUF+4+GHutnNZ5f+eagMmk=";
3636+ aarch64-linux = "sha256-5El0WOYTLiBKhYxRXKJFv1m2M8jZlN1cYrJDnRX2wYs=";
3737 }.${stdenv.system} or (throw "unsupported system ${stdenv.system}");
3838in
3939buildBazelPackage {
···5757 sed -i '/javabase=/d' .bazelrc
5858 sed -i '/"-Werror"/d' bazel/envoy_internal.bzl
59596060- cp ${./protobuf.patch} bazel/protobuf.patch
6060+ cp ${./dd_trace_cpp.patch} bazel/dd_trace_cpp.patch
6161 '';
62626363 patches = [
···7070 # use system C/C++ tools
7171 ./0003-nixpkgs-use-system-C-C-toolchains.patch
72727373- # bump proxy-wasm-cpp-host until > 1.27.3/1.28.0
7474- (fetchpatch {
7575- url = "https://github.com/envoyproxy/envoy/pull/31451.patch";
7676- hash = "sha256-n8k7bho3B8Gm0dJbgf43kU7ymvo15aGJ2Twi2xR450g=";
7777- })
7373+ # apply patch to dd-trace-cpp
7474+ # remove once a version of dd-trace-cpp is released and adopted by envoy
7575+ # that contains https://github.com/DataDog/dd-trace-cpp/commit/3a8e1e9a3cf4e87ef053e954a39dc7a967ac6965
7676+ ./0004-nixpkgs-add-cstdint-in-dd-trace-cpp.patch
7877 ];
79788079 nativeBuildInputs = [
···9089 buildInputs = [
9190 linuxHeaders
9291 ];
9393-9494- # external/com_github_grpc_grpc/src/core/ext/transport/binder/transport/binder_transport.cc:756:29: error: format not a string literal and no format arguments [-Werror=format-security]
9595- hardeningDisable = [ "format" ];
96929793 fetchAttrs = {
9894 sha256 = depsHash;
···171167 "--extra_toolchains=@local_jdk//:all"
172168 "--java_runtime_version=local_jdk"
173169 "--tool_java_runtime_version=local_jdk"
170170+171171+ # undefined reference to 'grpc_core::*Metadata*::*Memento*
172172+ #
173173+ # During linking of the final binary, we see undefined references to grpc_core related symbols.
174174+ # The missing symbols would be instantiations of a template class from https://github.com/grpc/grpc/blob/v1.59.4/src/core/lib/transport/metadata_batch.h
175175+ # "ParseMemento" and "MementoToValue" are only implemented for some types
176176+ # and appear unused and unimplemented for the undefined cases reported by the linker.
177177+ "--linkopt=-Wl,--unresolved-symbols=ignore-in-object-files"
174178175179 "--define=wasm=${wasmRuntime}"
176180 ] ++ (lib.optionals stdenv.isAarch64 [