From a3957236ce752b03d0ba3c388422b730129c6085 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Thu, 28 Dec 2023 20:30:19 +0000 Subject: [PATCH] cargo: fix `tests` eval Without the change `cargo` tests fail the eval as: $ nix build --no-link -f. cargo.tests error: attribute 'tests' missing at pkgs/development/compilers/rust/cargo.nix:22:15: 21| 22| passthru = { | ^ 23| rustc = rustc; The test teried to pull `tests` attribute from `rustc`, which is a wrapper without `tests`. Pull tests from unwrapped rust instead. --- pkgs/development/compilers/rust/cargo.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/compilers/rust/cargo.nix b/pkgs/development/compilers/rust/cargo.nix index 1bc1777acd47..ff0ecf45fd23 100644 --- a/pkgs/development/compilers/rust/cargo.nix +++ b/pkgs/development/compilers/rust/cargo.nix @@ -21,7 +21,7 @@ rustPlatform.buildRustPackage.override { passthru = { rustc = rustc; - inherit (rustc) tests; + inherit (rustc.unwrapped) tests; }; # Upstream rustc still assumes that musl = static[1]. The fix for