Fix tarball

Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
Shea Levy 2014-01-19 13:38:37 -05:00
parent cb24530135
commit 0e74c9f4dc

View File

@ -22,12 +22,12 @@ stdenv.mkDerivation {
'';
# Modify the snapshot compiler so that is can be executed
preBuild = ''
preBuild = if stdenv.isLinux then ''
make x86_64-unknown-linux-gnu/stage0/bin/rustc
patchelf --interpreter ${stdenv.glibc}/lib/ld-linux-x86-64.so.2 \
--set-rpath ${stdenv.gcc.gcc}/lib/ \
x86_64-unknown-linux-gnu/stage0/bin/rustc
'';
'' else null;
# rustc requires cc
postInstall = ''