2018-12-21 00:28:09 +00:00
|
|
|
{ stdenv, fetchurl, rust, callPackage, version, hashes }:
|
2016-06-07 18:42:51 +00:00
|
|
|
|
|
|
|
let
|
2018-12-21 00:28:09 +00:00
|
|
|
platform = rust.toRustTarget stdenv.hostPlatform;
|
2016-06-07 18:42:51 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://static.rust-lang.org/dist/rust-${version}-${platform}.tar.gz";
|
2018-12-21 00:28:09 +00:00
|
|
|
sha256 = hashes.${platform} or (throw "missing bootstrap url for platform ${platform}");
|
2016-06-07 18:42:51 +00:00
|
|
|
};
|
|
|
|
|
2019-08-15 15:50:28 +00:00
|
|
|
in callPackage ./binary.nix
|
2017-11-01 14:37:04 +00:00
|
|
|
{ inherit version src platform;
|
2017-05-30 13:48:06 +00:00
|
|
|
versionType = "bootstrap";
|
|
|
|
}
|