From 63ceec08859b5e68df8a700074b28a846f474bf9 Mon Sep 17 00:00:00 2001 From: whispers Date: Thu, 20 Aug 2026 08:55:09 -0400 Subject: [PATCH] cargo-lambda: zig_0_13 -> zig cargo-lambda, as far as we can tell, only uses zig to call into cargo-zigbuild. cargo-zigbuild supports the latest versions of zig, and the main `cargo-zigbuild` derivation seems to have had a fine time with an unpinned zig. since we aim to drop zig 0.13 soon as it depends on the long-eol llvm 18, we unpin this to work towards that. we do not use aws lambda, and thus cannot entirely test this, but initing a simple test project with `cargo lambda new` and building a project with `cargo lambda build` (which should default to using `cargo-zigbuild` interally) appears to work fine. --- pkgs/by-name/ca/cargo-lambda/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ca/cargo-lambda/package.nix b/pkgs/by-name/ca/cargo-lambda/package.nix index f9abd7ca8c5f..be63671d6bff 100644 --- a/pkgs/by-name/ca/cargo-lambda/package.nix +++ b/pkgs/by-name/ca/cargo-lambda/package.nix @@ -8,7 +8,7 @@ pkg-config, openssl, stdenv, - zig_0_13, + zig, nix-update-script, }: @@ -48,7 +48,7 @@ rustPlatform.buildRustPackage (finalAttrs: { ''; postInstall = '' - wrapProgram $out/bin/cargo-lambda --prefix PATH : ${lib.makeBinPath [ zig_0_13 ]} + wrapProgram $out/bin/cargo-lambda --prefix PATH : ${lib.makeBinPath [ zig ]} ''; env.CARGO_LAMBDA_BUILD_INFO = "(nixpkgs)";