From 536b77fd501f6554a5739f161e72ad78e9001d99 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Fri, 15 Apr 2022 09:17:25 +0000 Subject: [PATCH 1/3] envoy: switch to headless JDK for compilation --- pkgs/top-level/all-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f232122938e6..ce7225de4e25 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -21261,7 +21261,7 @@ with pkgs; engelsystem = callPackage ../servers/web-apps/engelsystem { php = php74; }; envoy = callPackage ../servers/http/envoy { - jdk = openjdk11; + jdk = openjdk11_headless; gn = gn1924; }; From b23255a51c3faa1994f17b0cff36732f6e202723 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Fri, 15 Apr 2022 09:17:48 +0000 Subject: [PATCH 2/3] envoy: add fetch hash for aarch64-linux --- pkgs/servers/http/envoy/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/http/envoy/default.nix b/pkgs/servers/http/envoy/default.nix index 64565a57ff94..5a85c2c1ab64 100644 --- a/pkgs/servers/http/envoy/default.nix +++ b/pkgs/servers/http/envoy/default.nix @@ -74,7 +74,10 @@ buildBazelPackage rec { ]; fetchAttrs = { - sha256 = "0f7mls2zrpjjvbz6pgkzrvr55bv05xn2l76j9i1r0cf367qqfkz8"; + sha256 = { + x86_64-linux = "0f7mls2zrpjjvbz6pgkzrvr55bv05xn2l76j9i1r0cf367qqfkz8"; + aarch64-linux = "1l3ls47z20xrw6x9qps5jm7vq50xb1acv9gczfdrj9hw6jybgwgg"; + }.${stdenv.system} or (throw "unsupported system ${stdenv.system}"); dontUseCmakeConfigure = true; dontUseGnConfigure = true; preInstall = '' @@ -124,6 +127,7 @@ buildBazelPackage rec { "--noexperimental_strict_action_env" "--cxxopt=-Wno-maybe-uninitialized" "--cxxopt=-Wno-uninitialized" + "--cxxopt=-Wno-error=type-limits" ]; passthru.tests = { @@ -137,6 +141,6 @@ buildBazelPackage rec { description = "Cloud-native edge and service proxy"; license = licenses.asl20; maintainers = with maintainers; [ lukegb ]; - platforms = [ "x86_64-linux" ]; # Other platforms will generate different fetch hashes. + platforms = [ "x86_64-linux" "aarch64-linux" ]; }; } From 940ad02f7b4a89e33715dc1df258a2ae138eab1d Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Fri, 15 Apr 2022 09:17:59 +0000 Subject: [PATCH 3/3] pomerium: note aarch64-linux as supported --- pkgs/servers/http/pomerium/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/http/pomerium/default.nix b/pkgs/servers/http/pomerium/default.nix index 49f489220606..b6de805a619b 100644 --- a/pkgs/servers/http/pomerium/default.nix +++ b/pkgs/servers/http/pomerium/default.nix @@ -86,6 +86,6 @@ buildGoModule rec { description = "Authenticating reverse proxy"; license = licenses.asl20; maintainers = with maintainers; [ lukegb ]; - platforms = [ "x86_64-linux" ]; # Envoy derivation is x86_64-linux only. + platforms = [ "x86_64-linux" "aarch64-linux" ]; }; }