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