From 4122d072e5c32490b8da55975f84e03743eb47f9 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Thu, 4 Jul 2024 11:40:40 -0700 Subject: [PATCH] rustPackages.buildRustPackages: allow one level of introspection before applying __attrsFailEvaluation --- pkgs/development/compilers/rust/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/rust/default.nix b/pkgs/development/compilers/rust/default.nix index 31501e668c893..788f8e67da08a 100644 --- a/pkgs/development/compilers/rust/default.nix +++ b/pkgs/development/compilers/rust/default.nix @@ -65,7 +65,10 @@ in bootRustPlatform = makeRustPlatform bootstrapRustPackages; in { # Packages suitable for build-time, e.g. `build.rs`-type stuff. - buildRustPackages = (selectRustPackage pkgsBuildHost).packages.stable // { __attrsFailEvaluation = true; }; + buildRustPackages = (selectRustPackage pkgsBuildHost).packages.stable // { + # Prevent `pkgs/top-level/release-attrpaths-superset.nix` from recursing more than one level here. + buildRustPackages = self.buildRustPackages // { __attrsFailEvaluation = true; }; + }; # Analogous to stdenv rustPlatform = makeRustPlatform self.buildRustPackages; rustc-unwrapped = self.callPackage ./rustc.nix ({