From 35ebf72241e43fc7bff59f6244b3bca0299d0820 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 27 Jun 2026 22:52:43 +0100 Subject: [PATCH] cargo-auditable: disable `test_bare_linker` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This tries to use `linker = "rust-lld"` on `aarch64-darwin`, Linux Musl and ARMv7 targets, and MSVC Windows, but we deliberately don’t provide that. --- pkgs/by-name/ca/cargo-auditable/builder.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ca/cargo-auditable/builder.nix b/pkgs/by-name/ca/cargo-auditable/builder.nix index da652a61fcad..a865d352943b 100644 --- a/pkgs/by-name/ca/cargo-auditable/builder.nix +++ b/pkgs/by-name/ca/cargo-auditable/builder.nix @@ -42,7 +42,20 @@ lib.extendMkDerivation { # https://github.com/rust-secure-code/cargo-auditable/issues/235 "--skip=test_proc_macro" "--skip=test_self_hosting" - ]; + ] + # TODO: Clean up on `staging`. + ++ + lib.optionals + ( + stdenv.hostPlatform.isMusl + || stdenv.hostPlatform.isAarch32 + || stdenv.hostPlatform.isDarwin + || stdenv.hostPlatform.isMsvc + ) + [ + # Expects `linker = "rust-lld"` to work. + "--skip=test_bare_linker" + ]; postInstall = '' installManPage cargo-auditable/cargo-auditable.1