From 7f494c2b234572393d8a17bce0f2362e40fe6c79 Mon Sep 17 00:00:00 2001 From: Marie Ramlow Date: Thu, 14 Aug 2025 17:20:14 +0200 Subject: [PATCH] rustc: also symlink libexec when doing fastCross We also need to symlink libexec when doing fastCross. It contains rust-analyzer-proc-macro-srv which rust-analyzer needs for proc macro expansion to work. --- pkgs/development/compilers/rust/rustc.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/compilers/rust/rustc.nix b/pkgs/development/compilers/rust/rustc.nix index 5b6db40575c3..844ffa50e7ab 100644 --- a/pkgs/development/compilers/rust/rustc.nix +++ b/pkgs/development/compilers/rust/rustc.nix @@ -301,6 +301,7 @@ stdenv.mkDerivation (finalAttrs: { python ./x.py --keep-stage=0 --stage=1 install library/std mkdir -v $out/bin $doc $man ln -s ${rustc.unwrapped}/bin/{rustc,rustdoc} $out/bin + ln -s ${rustc.unwrapped}/libexec $out rm -rf -v $out/lib/rustlib/{manifest-rust-std-,}${stdenv.hostPlatform.rust.rustcTargetSpec} 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