Loading pkgs/by-name/en/envoy/0001-nixpkgs-use-system-Python.patch +1 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ Date: Mon, 22 Apr 2024 11:52:59 +0200 Subject: [PATCH] nixpkgs: use system Python Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> Signed-off-by: Luke Granger-Brown <git@lukegb.com> --- bazel/python_dependencies.bzl | 9 ++++----- bazel/repositories_extra.bzl | 17 +---------------- Loading pkgs/by-name/en/envoy/0002-nixpkgs-use-system-Go.patch +3 −2 Original line number Diff line number Diff line Loading @@ -4,15 +4,16 @@ Date: Mon, 22 Apr 2024 11:58:00 +0200 Subject: [PATCH] nixpkgs: use system Go Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> Signed-off-by: Luke Granger-Brown <git@lukegb.com> --- bazel/dependency_imports.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bazel/dependency_imports.bzl b/bazel/dependency_imports.bzl index c68eb4bf3ed2d39d46d38d7bd0eeab2c74a507fa..addee4f6af74ea78ae778b73384e01db83ac6694 100644 index aef33aa103dc1136e63e165fb9ee6a267f52ba54..c5aefca14b729b548c4e90857202eb82576b507d 100644 --- a/bazel/dependency_imports.bzl +++ b/bazel/dependency_imports.bzl @@ -20,7 +20,7 @@ load("@rules_rust//rust:defs.bzl", "rust_common") @@ -22,7 +22,7 @@ load("@rules_rust//rust:defs.bzl", "rust_common") load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_register_toolchains", "rust_repository_set") # go version for rules_go Loading pkgs/by-name/en/envoy/0003-nixpkgs-use-system-C-C-toolchains.patch +5 −4 Original line number Diff line number Diff line Loading @@ -4,18 +4,19 @@ Date: Mon, 22 Apr 2024 11:59:22 +0200 Subject: [PATCH] nixpkgs: use system C/C++ toolchains Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> Signed-off-by: Luke Granger-Brown <git@lukegb.com> --- bazel/dependency_imports.bzl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bazel/dependency_imports.bzl b/bazel/dependency_imports.bzl index addee4f6af74ea78ae778b73384e01db83ac6694..dc1967e43b2b71358d2767a3d83b52819987290d 100644 index c5aefca14b729b548c4e90857202eb82576b507d..6938ce63abb53661e8d1fb71eaaab03ba0cc37c6 100644 --- a/bazel/dependency_imports.bzl +++ b/bazel/dependency_imports.bzl @@ -26,7 +26,11 @@ JQ_VERSION = "1.7" YQ_VERSION = "4.24.4" @@ -30,7 +30,11 @@ YQ_VERSION = "4.24.4" BUF_VERSION = "v1.50.0" def envoy_dependency_imports(go_version = GO_VERSION, jq_version = JQ_VERSION, yq_version = YQ_VERSION): def envoy_dependency_imports(go_version = GO_VERSION, jq_version = JQ_VERSION, yq_version = YQ_VERSION, buf_version = BUF_VERSION): - rules_foreign_cc_dependencies() + rules_foreign_cc_dependencies( + register_default_tools=False, # no prebuilt toolchains Loading pkgs/by-name/en/envoy/0004-nixpkgs-bump-rules_rust-to-0.60.0.patch 0 → 100644 +34 −0 Original line number Diff line number Diff line From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown <git@lukegb.com> Date: Thu, 17 Apr 2025 02:40:18 +0100 Subject: [PATCH] nixpkgs: bump rules_rust to 0.60.0 Signed-off-by: Luke Granger-Brown <git@lukegb.com> --- bazel/repository_locations.bzl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bazel/repository_locations.bzl b/bazel/repository_locations.bzl index 6904bc93bdda3ee2308f13d61e62295fa11d799b..e4574878a566cceb4dc2343f3cade0350ea5e5ff 100644 --- a/bazel/repository_locations.bzl +++ b/bazel/repository_locations.bzl @@ -1465,8 +1465,8 @@ REPOSITORY_LOCATIONS_SPEC = dict( project_name = "Bazel rust rules", project_desc = "Bazel rust rules (used by Wasm)", project_url = "https://github.com/bazelbuild/rules_rust", - version = "0.56.0", - sha256 = "f1306aac0b258b790df01ad9abc6abb0df0b65416c74b4ef27f4aab298780a64", + version = "0.60.0", + sha256 = "7825214ccad7c2482cb490ac91dbc1e88b30223062796ce328aca893b74ae342", # Note: rules_rust should point to the releases, not archive to avoid the hassle of bootstrapping in crate_universe. # This is described in https://bazelbuild.github.io/rules_rust/crate_universe.html#setup, otherwise bootstrap # is required which in turn requires a system CC toolchains, not the bazel controlled ones. @@ -1477,7 +1477,7 @@ REPOSITORY_LOCATIONS_SPEC = dict( "dataplane_ext", ], extensions = ["envoy.wasm.runtime.wasmtime"], - release_date = "2024-12-16", + release_date = "2025-04-08", cpe = "N/A", license = "Apache-2.0", license_url = "https://github.com/bazelbuild/rules_rust/blob/{version}/LICENSE.txt", pkgs/by-name/en/envoy/package.nix +21 −6 Original line number Diff line number Diff line Loading @@ -34,16 +34,16 @@ 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.33.0"; rev = "b0f43d67aa25c1b03c97186a200cc187f4c22db3"; hash = "sha256-zqekRpOlaA2IrwwFUEwASa1uokET98h5sr7EwzWgcbU="; version = "1.34.0"; rev = "d7809ba2b07fd869d49bfb122b27f6a7977b4d94"; hash = "sha256-SKdUrBXe0E3fMo73NROFO9Ck5FZidF/awP+QRA5t3VM="; }; # these need to be updated for any changes to fetchAttrs depsHash = { x86_64-linux = "sha256-4CQkHlXbDpRiqzeyserVf9PpLx3ME7TtZ2H88ggog6U="; aarch64-linux = "sha256-FxkfBWiG0NIInl28w+l4YvaV2VFuCtjn5VBAKvJoxM8="; x86_64-linux = "sha256-CiP9qH8/+nNZM8BNz84eVwWphVyDNo2KOYcK0wOsXn0="; aarch64-linux = "sha256-9HGg68R546JY1EOm22tg9CuPt0nU+FooFcLG9A2hkzE="; } .${stdenv.system} or (throw "unsupported system ${stdenv.system}"); Loading @@ -59,6 +59,8 @@ buildBazelPackage rec { repo = "envoy"; inherit (srcVer) hash rev; }; # By convention, these patches are generated like: # git format-patch --zero-commit --signoff --no-numbered --minimal --full-index --no-signature patches = [ # use system Python, not bazel-fetched binary Python ./0001-nixpkgs-use-system-Python.patch Loading @@ -68,6 +70,9 @@ buildBazelPackage rec { # use system C/C++ tools ./0003-nixpkgs-use-system-C-C-toolchains.patch # bump rules_rust to support newer Rust ./0004-nixpkgs-bump-rules_rust-to-0.60.0.patch ]; postPatch = '' chmod -R +w . Loading @@ -92,6 +97,12 @@ buildBazelPackage rec { --replace-fail 'crate_universe_dependencies()' 'crate_universe_dependencies(rust_toolchain_cargo_template="@@//bazel/nix:cargo", rust_toolchain_rustc_template="@@//bazel/nix:rustc")' \ --replace-fail 'crates_repository(' 'crates_repository(rust_toolchain_cargo_template="@@//bazel/nix:cargo", rust_toolchain_rustc_template="@@//bazel/nix:rustc",' # patch rules_rust for envoy specifics, but also to support old Bazel # (Bazel 6 doesn't have ctx.watch, but ctx.path is sufficient for our use) cp ${./rules_rust.patch} bazel/rules_rust.patch substituteInPlace bazel/repositories.bzl \ --replace-fail ', "@envoy//bazel:rules_rust_ppc64le.patch"' "" substitute ${./rules_rust_extra.patch} bazel/nix/rules_rust_extra.patch \ --subst-var-by bash "$(type -p bash)" cat bazel/nix/rules_rust_extra.patch bazel/rules_rust.patch > bazel/nix/rules_rust.patch Loading Loading @@ -133,6 +144,7 @@ buildBazelPackage rec { sed -i \ -e 's,${python3},__NIXPYTHON__,' \ -e 's,${stdenv.shellPackage},__NIXSHELL__,' \ -e 's,${builtins.storeDir}/[^/]\+/bin/bash,__NIXBASH__,' \ $bazelOut/external/com_github_luajit_luajit/build.py \ $bazelOut/external/local_config_sh/BUILD \ $bazelOut/external/*_pip3/BUILD.bazel \ Loading Loading @@ -180,9 +192,12 @@ buildBazelPackage rec { sed -i \ -e 's,__NIXPYTHON__,${python3},' \ -e 's,__NIXSHELL__,${stdenv.shellPackage},' \ -e 's,__NIXBASH__,${stdenv.shell},' \ $bazelOut/external/com_github_luajit_luajit/build.py \ $bazelOut/external/local_config_sh/BUILD \ $bazelOut/external/*_pip3/BUILD.bazel $bazelOut/external/*_pip3/BUILD.bazel \ $bazelOut/external/rules_rust/util/process_wrapper/private/process_wrapper.sh \ $bazelOut/external/rules_rust/crate_universe/src/metadata/cargo_tree_rustc_wrapper.sh # Install repinned rules_rust lockfile cp $bazelOut/external/Cargo.Bazel.lock source/extensions/dynamic_modules/sdk/rust/Cargo.Bazel.lock Loading Loading
pkgs/by-name/en/envoy/0001-nixpkgs-use-system-Python.patch +1 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ Date: Mon, 22 Apr 2024 11:52:59 +0200 Subject: [PATCH] nixpkgs: use system Python Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> Signed-off-by: Luke Granger-Brown <git@lukegb.com> --- bazel/python_dependencies.bzl | 9 ++++----- bazel/repositories_extra.bzl | 17 +---------------- Loading
pkgs/by-name/en/envoy/0002-nixpkgs-use-system-Go.patch +3 −2 Original line number Diff line number Diff line Loading @@ -4,15 +4,16 @@ Date: Mon, 22 Apr 2024 11:58:00 +0200 Subject: [PATCH] nixpkgs: use system Go Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> Signed-off-by: Luke Granger-Brown <git@lukegb.com> --- bazel/dependency_imports.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bazel/dependency_imports.bzl b/bazel/dependency_imports.bzl index c68eb4bf3ed2d39d46d38d7bd0eeab2c74a507fa..addee4f6af74ea78ae778b73384e01db83ac6694 100644 index aef33aa103dc1136e63e165fb9ee6a267f52ba54..c5aefca14b729b548c4e90857202eb82576b507d 100644 --- a/bazel/dependency_imports.bzl +++ b/bazel/dependency_imports.bzl @@ -20,7 +20,7 @@ load("@rules_rust//rust:defs.bzl", "rust_common") @@ -22,7 +22,7 @@ load("@rules_rust//rust:defs.bzl", "rust_common") load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_register_toolchains", "rust_repository_set") # go version for rules_go Loading
pkgs/by-name/en/envoy/0003-nixpkgs-use-system-C-C-toolchains.patch +5 −4 Original line number Diff line number Diff line Loading @@ -4,18 +4,19 @@ Date: Mon, 22 Apr 2024 11:59:22 +0200 Subject: [PATCH] nixpkgs: use system C/C++ toolchains Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> Signed-off-by: Luke Granger-Brown <git@lukegb.com> --- bazel/dependency_imports.bzl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bazel/dependency_imports.bzl b/bazel/dependency_imports.bzl index addee4f6af74ea78ae778b73384e01db83ac6694..dc1967e43b2b71358d2767a3d83b52819987290d 100644 index c5aefca14b729b548c4e90857202eb82576b507d..6938ce63abb53661e8d1fb71eaaab03ba0cc37c6 100644 --- a/bazel/dependency_imports.bzl +++ b/bazel/dependency_imports.bzl @@ -26,7 +26,11 @@ JQ_VERSION = "1.7" YQ_VERSION = "4.24.4" @@ -30,7 +30,11 @@ YQ_VERSION = "4.24.4" BUF_VERSION = "v1.50.0" def envoy_dependency_imports(go_version = GO_VERSION, jq_version = JQ_VERSION, yq_version = YQ_VERSION): def envoy_dependency_imports(go_version = GO_VERSION, jq_version = JQ_VERSION, yq_version = YQ_VERSION, buf_version = BUF_VERSION): - rules_foreign_cc_dependencies() + rules_foreign_cc_dependencies( + register_default_tools=False, # no prebuilt toolchains Loading
pkgs/by-name/en/envoy/0004-nixpkgs-bump-rules_rust-to-0.60.0.patch 0 → 100644 +34 −0 Original line number Diff line number Diff line From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown <git@lukegb.com> Date: Thu, 17 Apr 2025 02:40:18 +0100 Subject: [PATCH] nixpkgs: bump rules_rust to 0.60.0 Signed-off-by: Luke Granger-Brown <git@lukegb.com> --- bazel/repository_locations.bzl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bazel/repository_locations.bzl b/bazel/repository_locations.bzl index 6904bc93bdda3ee2308f13d61e62295fa11d799b..e4574878a566cceb4dc2343f3cade0350ea5e5ff 100644 --- a/bazel/repository_locations.bzl +++ b/bazel/repository_locations.bzl @@ -1465,8 +1465,8 @@ REPOSITORY_LOCATIONS_SPEC = dict( project_name = "Bazel rust rules", project_desc = "Bazel rust rules (used by Wasm)", project_url = "https://github.com/bazelbuild/rules_rust", - version = "0.56.0", - sha256 = "f1306aac0b258b790df01ad9abc6abb0df0b65416c74b4ef27f4aab298780a64", + version = "0.60.0", + sha256 = "7825214ccad7c2482cb490ac91dbc1e88b30223062796ce328aca893b74ae342", # Note: rules_rust should point to the releases, not archive to avoid the hassle of bootstrapping in crate_universe. # This is described in https://bazelbuild.github.io/rules_rust/crate_universe.html#setup, otherwise bootstrap # is required which in turn requires a system CC toolchains, not the bazel controlled ones. @@ -1477,7 +1477,7 @@ REPOSITORY_LOCATIONS_SPEC = dict( "dataplane_ext", ], extensions = ["envoy.wasm.runtime.wasmtime"], - release_date = "2024-12-16", + release_date = "2025-04-08", cpe = "N/A", license = "Apache-2.0", license_url = "https://github.com/bazelbuild/rules_rust/blob/{version}/LICENSE.txt",
pkgs/by-name/en/envoy/package.nix +21 −6 Original line number Diff line number Diff line Loading @@ -34,16 +34,16 @@ 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.33.0"; rev = "b0f43d67aa25c1b03c97186a200cc187f4c22db3"; hash = "sha256-zqekRpOlaA2IrwwFUEwASa1uokET98h5sr7EwzWgcbU="; version = "1.34.0"; rev = "d7809ba2b07fd869d49bfb122b27f6a7977b4d94"; hash = "sha256-SKdUrBXe0E3fMo73NROFO9Ck5FZidF/awP+QRA5t3VM="; }; # these need to be updated for any changes to fetchAttrs depsHash = { x86_64-linux = "sha256-4CQkHlXbDpRiqzeyserVf9PpLx3ME7TtZ2H88ggog6U="; aarch64-linux = "sha256-FxkfBWiG0NIInl28w+l4YvaV2VFuCtjn5VBAKvJoxM8="; x86_64-linux = "sha256-CiP9qH8/+nNZM8BNz84eVwWphVyDNo2KOYcK0wOsXn0="; aarch64-linux = "sha256-9HGg68R546JY1EOm22tg9CuPt0nU+FooFcLG9A2hkzE="; } .${stdenv.system} or (throw "unsupported system ${stdenv.system}"); Loading @@ -59,6 +59,8 @@ buildBazelPackage rec { repo = "envoy"; inherit (srcVer) hash rev; }; # By convention, these patches are generated like: # git format-patch --zero-commit --signoff --no-numbered --minimal --full-index --no-signature patches = [ # use system Python, not bazel-fetched binary Python ./0001-nixpkgs-use-system-Python.patch Loading @@ -68,6 +70,9 @@ buildBazelPackage rec { # use system C/C++ tools ./0003-nixpkgs-use-system-C-C-toolchains.patch # bump rules_rust to support newer Rust ./0004-nixpkgs-bump-rules_rust-to-0.60.0.patch ]; postPatch = '' chmod -R +w . Loading @@ -92,6 +97,12 @@ buildBazelPackage rec { --replace-fail 'crate_universe_dependencies()' 'crate_universe_dependencies(rust_toolchain_cargo_template="@@//bazel/nix:cargo", rust_toolchain_rustc_template="@@//bazel/nix:rustc")' \ --replace-fail 'crates_repository(' 'crates_repository(rust_toolchain_cargo_template="@@//bazel/nix:cargo", rust_toolchain_rustc_template="@@//bazel/nix:rustc",' # patch rules_rust for envoy specifics, but also to support old Bazel # (Bazel 6 doesn't have ctx.watch, but ctx.path is sufficient for our use) cp ${./rules_rust.patch} bazel/rules_rust.patch substituteInPlace bazel/repositories.bzl \ --replace-fail ', "@envoy//bazel:rules_rust_ppc64le.patch"' "" substitute ${./rules_rust_extra.patch} bazel/nix/rules_rust_extra.patch \ --subst-var-by bash "$(type -p bash)" cat bazel/nix/rules_rust_extra.patch bazel/rules_rust.patch > bazel/nix/rules_rust.patch Loading Loading @@ -133,6 +144,7 @@ buildBazelPackage rec { sed -i \ -e 's,${python3},__NIXPYTHON__,' \ -e 's,${stdenv.shellPackage},__NIXSHELL__,' \ -e 's,${builtins.storeDir}/[^/]\+/bin/bash,__NIXBASH__,' \ $bazelOut/external/com_github_luajit_luajit/build.py \ $bazelOut/external/local_config_sh/BUILD \ $bazelOut/external/*_pip3/BUILD.bazel \ Loading Loading @@ -180,9 +192,12 @@ buildBazelPackage rec { sed -i \ -e 's,__NIXPYTHON__,${python3},' \ -e 's,__NIXSHELL__,${stdenv.shellPackage},' \ -e 's,__NIXBASH__,${stdenv.shell},' \ $bazelOut/external/com_github_luajit_luajit/build.py \ $bazelOut/external/local_config_sh/BUILD \ $bazelOut/external/*_pip3/BUILD.bazel $bazelOut/external/*_pip3/BUILD.bazel \ $bazelOut/external/rules_rust/util/process_wrapper/private/process_wrapper.sh \ $bazelOut/external/rules_rust/crate_universe/src/metadata/cargo_tree_rustc_wrapper.sh # Install repinned rules_rust lockfile cp $bazelOut/external/Cargo.Bazel.lock source/extensions/dynamic_modules/sdk/rust/Cargo.Bazel.lock Loading