rust: update to 0.10 release#2398
Conversation
There was a problem hiding this comment.
You forgot to update the version here :)
|
Thanks a lot for updating this! I can't build it on my nixos x86_64: it tries to download the snapshot rust-stage0-2014-03-28-b8601a3-linux-x86_64-a7b2af1076d48e4a687a71a21478293e834349bd.tar.bz2, which is not the one specified in the expression. Do you build it in a chroot to make sure it doesn't download the snapshot during the build? |
|
Sure thing! I'll double check everything and follow up shortly. |
|
Ok, I've pushed some changes. The snapshot now uses |
|
Well, that didn't work: I'll have to give it a little more thought... |
|
Alright, I added a new patch to remove those problematic calls to |
|
On linux, the binaries need to be patched in order to work, so I did a little modification: diff --git a/pkgs/development/compilers/rust/default.nix b/pkgs/development/compilers/rust/default.nix
index 39f79af..bb58821 100644
--- a/pkgs/development/compilers/rust/default.nix
+++ b/pkgs/development/compilers/rust/default.nix
@@ -50,7 +50,12 @@ stdenv.mkDerivation {
installPhase = ''
mkdir -p "$out"
cp -r bin "$out/bin"
- '';
+ '' + (if stdenv.isLinux then ''
+ patchelf --interpreter ${stdenv.glibc}/lib/${stdenv.gcc.dynamicLinker} \
+ --set-rpath ${stdenv.gcc.gcc}/lib/:${stdenv.gcc.gcc}/lib64/ \
+ $out/bin/rustc
+ '' else "");
+
};
configureFlags = [ "--enable-local-rust" "--local-rust-root=$snapshot" ];With this, everything seems to work. |
|
@madjar - Oh, I thought the rustc binary would be patched & stripped during the snapshot derivation's fixup phase. It sounds like that's not the case though, so I've amended the commit. |
rust: update to 0.10 release
Release notes: https://mail.mozilla.org/pipermail/rust-dev/2014-April/009387.html