We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cca51f commit d42d6e6Copy full SHA for d42d6e6
1 file changed
nix/rust/toolchain.nix
@@ -26,12 +26,11 @@ importingFlake: {
26
toolchain: toolchain.default.override { extensions = [ "rustfmt" ]; }
27
);
28
29
- # We want *only* the rustfmt binaries. This trick doesn't
30
- # really work for other components of the rust toolchain,
31
- # but specifically rustfmt is quite self-contained.
+ # Symlink so rustfmt keeps working on aarch64-darwin, where
+ # it's dynamically linked against the toolchain's lib/.
32
rustfmtNightly = pkgs.runCommand rustfmtToolchain.name { } ''
33
mkdir -p $out/bin
34
- cp ${rustfmtToolchain}/bin/{cargo-fmt,rustfmt} $out/bin
+ ln -s ${rustfmtToolchain}/bin/{cargo-fmt,rustfmt} $out/bin
35
'';
36
in
37
[
0 commit comments