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