rust-overlay icon indicating copy to clipboard operation
rust-overlay copied to clipboard

Provide access to commit hash of a toolchain

Open Nemo157 opened this issue 9 months ago • 3 comments

I would like to setup remapping of rust toolchain's CI paths to the local rust-src component, something similar to

rust-toolchain = pkgs.rust-bin.selectLatestNightlyWith (toolchain:
  toolchain.default.override {
    extensions = ["rust-src"];
  }
);

"--remap-path-prefix=/rustc/${rust-toolchain.commit}=/${rust-toolchain}/lib/rustlib/src/rust"

But afaict there's no way to access the commit hash of a selected toolchain.

Nemo157 avatar Nov 10 '23 10:11 Nemo157