2017-03-17 06:51:28 -07:00
|
|
|
{ stdenv, fetchurl, makeWrapper, cacert, zlib, buildRustPackage, curl }:
|
2016-11-25 00:46:40 -08:00
|
|
|
|
|
|
|
let
|
2017-01-03 07:50:56 -08:00
|
|
|
platform = if stdenv.system == "x86_64-linux"
|
2016-11-25 00:46:40 -08:00
|
|
|
then "x86_64-unknown-linux-gnu"
|
2017-03-08 17:37:14 -08:00
|
|
|
else throw "missing bootstrap url for platform ${stdenv.system}";
|
2016-11-25 00:46:40 -08:00
|
|
|
|
|
|
|
bootstrapHash =
|
|
|
|
if stdenv.system == "x86_64-linux"
|
2017-06-26 07:17:43 -07:00
|
|
|
then "0svlm4bxsdhdn4jsv46f278kid23a9w978q2137qrba4xnyb06kf"
|
2017-03-08 17:37:14 -08:00
|
|
|
else throw "missing bootstrap hash for platform ${stdenv.system}";
|
2016-11-25 00:46:40 -08:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-12-12 09:59:10 -08:00
|
|
|
url = "https://static.rust-lang.org/dist/${version}/rust-nightly-${platform}.tar.gz";
|
2016-11-25 00:46:40 -08:00
|
|
|
sha256 = bootstrapHash;
|
|
|
|
};
|
|
|
|
|
2017-06-26 07:17:43 -07:00
|
|
|
version = "2017-06-26";
|
2017-05-30 06:48:06 -07:00
|
|
|
in import ./binaryBuild.nix
|
|
|
|
{ inherit stdenv fetchurl makeWrapper cacert zlib buildRustPackage curl;
|
|
|
|
inherit version src platform;
|
|
|
|
versionType = "nightly";
|
|
|
|
}
|