From 3dc8b5d904803853946e5c6637ab703edf764c89 Mon Sep 17 00:00:00 2001 From: Jay Mundrawala Date: Sun, 8 Jan 2017 01:53:44 -0800 Subject: [PATCH] rustUnstableBin.rustc: Run patchelf on bin/rustdoc (#21746) Cargo seems to run rustdoc and produces an annoying error when it tries to run. --- pkgs/development/compilers/rust/nightlyBin.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/compilers/rust/nightlyBin.nix b/pkgs/development/compilers/rust/nightlyBin.nix index 6f7cca9aff2..bac35c790d0 100644 --- a/pkgs/development/compilers/rust/nightlyBin.nix +++ b/pkgs/development/compilers/rust/nightlyBin.nix @@ -49,6 +49,9 @@ rec { patchelf \ --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \ "$out/bin/rustc" + patchelf \ + --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \ + "$out/bin/rustdoc" ''} '';