From 0e74c9f4dcec3fe61a1e9ec9afb5a03f8b27183b Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Sun, 19 Jan 2014 13:38:37 -0500 Subject: [PATCH] Fix tarball Signed-off-by: Shea Levy --- pkgs/development/compilers/rust/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/compilers/rust/default.nix b/pkgs/development/compilers/rust/default.nix index f605f1ca40e..a0c8b50ad3f 100644 --- a/pkgs/development/compilers/rust/default.nix +++ b/pkgs/development/compilers/rust/default.nix @@ -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 = ''