summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam C. Stephens <2071575+adamcstephens@users.noreply.github.com>2024-02-14 15:45:32 -0500
committerGitHub <noreply@github.com>2024-02-14 15:45:32 -0500
commita94892ad746fbdbe498553a76f898490a85900dd (patch)
tree6dd98b6a6a55cd8eb1880d13d1606f944626645f
parentMerge pull request #288376 from NixOS/backport-288272-to-release-23.11 (diff)
parentenvoy: 1.27.2 -> 1.27.3 (diff)
downloadnixpkgs-a94892ad746fbdbe498553a76f898490a85900dd.tar.gz
Merge pull request #288850 from adamcstephens/envoy/1.27.3-23.11
[Backport release-23.11] envoy: 1.27.1 -> 1.27.3
-rw-r--r--pkgs/servers/http/envoy/default.nix32
1 files changed, 23 insertions, 9 deletions
diff --git a/pkgs/servers/http/envoy/default.nix b/pkgs/servers/http/envoy/default.nix
index 0b1d88e43e0d..9a50c3063eb3 100644
--- a/pkgs/servers/http/envoy/default.nix
+++ b/pkgs/servers/http/envoy/default.nix
@@ -3,6 +3,7 @@
, bazel-gazelle
, buildBazelPackage
, fetchFromGitHub
+, fetchpatch
, stdenv
, cmake
, gn
@@ -24,19 +25,25 @@ let
# However, the version string is more useful for end-users.
# These are contained in a attrset of their own to make it obvious that
# people should update both.
- version = "1.27.1";
- rev = "6b9db09c69965d5bfb37bdd29693f8b7f9e9e9ec";
+ version = "1.27.3";
+ rev = "0fd81ee7ffcd7cfc864094b24dc9b5c3ade89ff2";
+ hash = "sha256-WNyyUw3517oKqMd1sJMk9CiLa/V7UrhwlRS+AWNNOOo=";
};
+
+ # these need to be updated for any changes to fetchAttrs
+ depsHash = {
+ x86_64-linux = "sha256-wTGHfeFkCuijPdX//lT5GPspaxZsxzBHJffH1tpVM2w=";
+ aarch64-linux = "sha256-9/Wem+Gk/7bFeMNFC4J3mdTm3mrNmyMxiu5oadQcovU=";
+ }.${stdenv.system} or (throw "unsupported system ${stdenv.system}");
in
-buildBazelPackage rec {
+buildBazelPackage {
pname = "envoy";
inherit (srcVer) version;
bazel = bazel_6;
src = fetchFromGitHub {
owner = "envoyproxy";
repo = "envoy";
- inherit (srcVer) rev;
- hash = "sha256-eZ3UCVqQbtK2GbawUVef5+BMSQbqe+owtwH+b887mQE=";
+ inherit (srcVer) hash rev;
postFetch = ''
chmod -R +w $out
@@ -62,6 +69,12 @@ buildBazelPackage rec {
# use system C/C++ tools
./0003-nixpkgs-use-system-C-C-toolchains.patch
+
+ # bump proxy-wasm-cpp-host until > 1.27.3/1.28.0
+ (fetchpatch {
+ url = "https://github.com/envoyproxy/envoy/pull/31451.patch";
+ hash = "sha256-n8k7bho3B8Gm0dJbgf43kU7ymvo15aGJ2Twi2xR450g=";
+ })
];
nativeBuildInputs = [
@@ -82,10 +95,7 @@ buildBazelPackage rec {
hardeningDisable = [ "format" ];
fetchAttrs = {
- sha256 = {
- x86_64-linux = "sha256-OQ4vg4S3DpM+Zo+igncx3AXJnL8FkJbwh7KnBhbnCUM=";
- aarch64-linux = "sha256-/X8i1vzQ4QvFxi1+5rc1/CGHmRhhu5F3X5A3PgbW+Mc=";
- }.${stdenv.system} or (throw "unsupported system ${stdenv.system}");
+ sha256 = depsHash;
dontUseCmakeConfigure = true;
dontUseGnConfigure = true;
preInstall = ''
@@ -111,6 +121,9 @@ buildBazelPackage rec {
# Remove Unix timestamps from go cache.
rm -rf $bazelOut/external/bazel_gazelle_go_repository_cache/{gocache,pkg/mod/cache,pkg/sumdb}
+
+ # fix tcmalloc failure https://github.com/envoyproxy/envoy/issues/30838
+ sed -i '/TCMALLOC_GCC_FLAGS = \[/a"-Wno-changes-meaning",' $bazelOut/external/com_github_google_tcmalloc/tcmalloc/copts.bzl
'';
};
buildAttrs = {
@@ -178,6 +191,7 @@ buildBazelPackage rec {
meta = with lib; {
homepage = "https://envoyproxy.io";
+ changelog = "https://github.com/envoyproxy/envoy/releases/tag/v${version}";
description = "Cloud-native edge and service proxy";
license = licenses.asl20;
maintainers = with maintainers; [ lukegb ];