summary refs log tree commit diff
path: root/pkgs/development/compilers/rustc/head.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/compilers/rustc/head.nix')
-rw-r--r--pkgs/development/compilers/rustc/head.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/compilers/rustc/head.nix b/pkgs/development/compilers/rustc/head.nix
index 5aad9bfa5ff..760fcdd851a 100644
--- a/pkgs/development/compilers/rustc/head.nix
+++ b/pkgs/development/compilers/rustc/head.nix
@@ -67,7 +67,7 @@ stdenv.mkDerivation {
       cp -r bin "$out/bin"
     '' + (if stdenv.isLinux then ''
       patchelf --interpreter "${stdenv.glibc}/lib/${stdenv.cc.dynamicLinker}" \
-               --set-rpath "${stdenv.cc.gcc}/lib/:${stdenv.cc.gcc}/lib64/" \
+               --set-rpath "${stdenv.cc.cc}/lib/:${stdenv.cc.cc}/lib64/" \
                "$out/bin/rustc"
     '' else "");
   };