2018-12-21 00:28:09 +00:00
|
|
|
{ stdenv, fetchurl, rust, callPackage, version, hashes }:
|
2016-06-07 19:42:51 +01:00
|
|
|
|
|
|
|
let
|
2018-12-21 00:28:09 +00:00
|
|
|
platform = rust.toRustTarget stdenv.hostPlatform;
|
2016-06-07 19:42:51 +01: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 19:42:51 +01:00
|
|
|
};
|
|
|
|
|
2019-08-15 16:50:28 +01:00
|
|
|
in callPackage ./binary.nix
|
2017-11-01 14:37:04 +00:00
|
|
|
{ inherit version src platform;
|
2017-05-30 14:48:06 +01:00
|
|
|
versionType = "bootstrap";
|
|
|
|
}
|