2023-11-16 04:20:00 +00:00
|
|
|
{ stdenv, fetchurl, callPackage, version, hashes }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
2023-11-16 04:20:00 +00:00
|
|
|
platform = stdenv.hostPlatform.rust.rustcTarget;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://static.rust-lang.org/dist/rust-${version}-${platform}.tar.gz";
|
|
|
|
sha256 = hashes.${platform} or (throw "missing bootstrap url for platform ${platform}");
|
|
|
|
};
|
|
|
|
|
|
|
|
in callPackage ./binary.nix
|
|
|
|
{ inherit version src platform;
|
|
|
|
versionType = "bootstrap";
|
|
|
|
}
|