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