Add `fromToolchainName` to targets
This would allow combining components from a specific version in a cross compilation context:
[toolchain]
channel = "1.77.0"
profile = "default"
components = [ "rust-src", "rust-analyzer" ]
let
name = (pkgs.lib.importTOML ./rust-toolchain.toml).toolchain.channel;
fenixPackage = fenix.packages.${buildPlatform};
toolchain = fenixPackage.fromToolchainName { inherit name sha256; };
targetToolchain = fenixPackage.targets.${targetPlatform}.fromToolchainName { inherit name sha256; };
in
fenixPackage.combine [
toolchain.rustc
toolchain.cargo
targetToolchain.rust-std
];
Any news about it?
@soywod You should probably revert 86c0fc2, and rebase against fenix/main, otherwise we end up with merge commits in a PR :)
I'm in favour of this PR, fwiw.
Thank you @shymega :wink: I just pushed the rebase.
Is this project dead? Looks like PRs are accumulating and nobody takes care of them :disappointed:
Is this project dead? Looks like PRs are accumulating and nobody takes care of them 😞
Its not dead anymore now :3
Are there any blockers for merging this?
I don't think so.
FWIW, we're using @soywod's patch without issue in our project, so consider this an approving review from someone without merge rights 😄
Is this project dead? Looks like PRs are accumulating and nobody takes care of them 😞
Its not dead anymore now :3
@nyabinary in that case, would you mind reviewing/merging this? 😄