Unverified Commit 4122d072 authored by Philip Taron's avatar Philip Taron
Browse files

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

rustPackages.buildRustPackages: allow one level of introspection before applying __attrsFailEvaluation
parent b1afdbff
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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 ({