about summary refs log tree commit diff
path: root/pkgs/development/compilers/rust/rustc.nix
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2023-11-16 12:19:36 +0100
committerAdam Joseph <54836058+amjoseph-nixpkgs@users.noreply.github.com>2023-11-30 09:23:06 +0000
commit8929ba838fa34da64f1490a4f47209d20c9346be (patch)
treef329df1105dddf7260e423c54f2354ed8cae772d /pkgs/development/compilers/rust/rustc.nix
parent8b51cdd3bea18e806e3ed63add8e19292dfc84ec (diff)
downloadnixlib-8929ba838fa34da64f1490a4f47209d20c9346be.tar
nixlib-8929ba838fa34da64f1490a4f47209d20c9346be.tar.gz
nixlib-8929ba838fa34da64f1490a4f47209d20c9346be.tar.bz2
nixlib-8929ba838fa34da64f1490a4f47209d20c9346be.tar.lz
nixlib-8929ba838fa34da64f1490a4f47209d20c9346be.tar.xz
nixlib-8929ba838fa34da64f1490a4f47209d20c9346be.tar.zst
nixlib-8929ba838fa34da64f1490a4f47209d20c9346be.zip
rustc: use the wrapper for fastCross sysroot
This avoids having two layers of wrapper for cross rustc.
Diffstat (limited to 'pkgs/development/compilers/rust/rustc.nix')
-rw-r--r--pkgs/development/compilers/rust/rustc.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/compilers/rust/rustc.nix b/pkgs/development/compilers/rust/rustc.nix
index cb74ec11127f..7e365f52ef30 100644
--- a/pkgs/development/compilers/rust/rustc.nix
+++ b/pkgs/development/compilers/rust/rustc.nix
@@ -169,7 +169,7 @@ in stdenv.mkDerivation (finalAttrs: {
 
     python ./x.py --keep-stage=0 --stage=1 install library/std
     mkdir -v $out/bin $doc $man
-    makeWrapper ${rustc.unwrapped}/bin/rustc $out/bin/rustc --add-flags "--sysroot $out"
+    ln -s ${rustc.unwrapped}/bin/rustc $out/bin
     makeWrapper ${rustc.unwrapped}/bin/rustdoc $out/bin/rustdoc --add-flags "--sysroot $out"
     ln -s ${rustc.unwrapped}/lib/rustlib/{manifest-rust-std-,}${stdenv.hostPlatform.rust.rustcTargetSpec} $out/lib/rustlib/
     echo rust-std-${stdenv.hostPlatform.rust.rustcTargetSpec} >> $out/lib/rustlib/components