racer[d]: fix RUST_SRC_PATH

`rustc.src` is a `tar.gz` archive, but we need it unpacked.
This commit is contained in:
Benno Fünfstück
2017-07-18 17:16:52 +02:00
parent 476fc5f26e
commit 496dac571c
3 changed files with 10 additions and 2 deletions
@@ -24,7 +24,7 @@ rustPlatform.buildRustPackage rec {
installPhase = ''
mkdir -p $out/bin
cp -p target/release/racer $out/bin/
wrapProgram $out/bin/racer --set RUST_SRC_PATH "${rustPlatform.rust.rustc.src}/src"
wrapProgram $out/bin/racer --set RUST_SRC_PATH "${rustPlatform.rustcSrc}"
'';
meta = with stdenv.lib; {