rustc: Set TMPDIR on Darwin to fix build.

This commit is contained in:
Daiderd Jordan
2016-08-10 21:16:48 +02:00
committed by Moritz Ulrich
parent 3dc73927fe
commit 2b806e9b71
2 changed files with 30 additions and 23 deletions
@@ -1,6 +1,8 @@
{ stdenv, fetchurl, makeWrapper, cacert, zlib }:
let
inherit (stdenv.lib) optionalString;
platform =
if stdenv.system == "i686-linux"
then "i686-unknown-linux-gnu"
@@ -24,7 +26,7 @@ let
then "d59b5509e69c1cace20a57072e3b3ecefdbfd8c7e95657b0ff2ac10aa1dfebe6"
else throw "missing boostrap hash for platform ${stdenv.system}";
needsPatchelf = (stdenv.system == "i686-linux") || (stdenv.system == "x86_64-linux");
needsPatchelf = stdenv.isLinux;
src = fetchurl {
url = "https://static.rust-lang.org/dist/rust-${version}-${platform}.tar.gz";