about summary refs log tree commit diff
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2014-01-19 13:38:37 -0500
committerShea Levy <shea@shealevy.com>2014-01-19 13:38:37 -0500
commit0e74c9f4dcec3fe61a1e9ec9afb5a03f8b27183b (patch)
tree0af277f902618a9934f5cfbda6b203f04e33a983
parentcb245301350147edfec6867f0955e7e1379e3439 (diff)
downloadnixlib-0e74c9f4dcec3fe61a1e9ec9afb5a03f8b27183b.tar
nixlib-0e74c9f4dcec3fe61a1e9ec9afb5a03f8b27183b.tar.gz
nixlib-0e74c9f4dcec3fe61a1e9ec9afb5a03f8b27183b.tar.bz2
nixlib-0e74c9f4dcec3fe61a1e9ec9afb5a03f8b27183b.tar.lz
nixlib-0e74c9f4dcec3fe61a1e9ec9afb5a03f8b27183b.tar.xz
nixlib-0e74c9f4dcec3fe61a1e9ec9afb5a03f8b27183b.tar.zst
nixlib-0e74c9f4dcec3fe61a1e9ec9afb5a03f8b27183b.zip
Fix tarball
Signed-off-by: Shea Levy <shea@shealevy.com>
-rw-r--r--pkgs/development/compilers/rust/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/compilers/rust/default.nix b/pkgs/development/compilers/rust/default.nix
index f605f1ca40ed..a0c8b50ad3fa 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 = ''