rustPackages.buildRustPackages: allow one level of introspection before applying __attrsFailEvaluation

This commit is contained in:
Philip Taron 2024-07-04 11:40:40 -07:00
parent b1afdbff75
commit 4122d072e5
No known key found for this signature in database

View File

@ -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 ({