2024-06-30 08:12:46 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
fetchurl,
|
|
|
|
callPackage,
|
|
|
|
version,
|
|
|
|
hashes,
|
|
|
|
}:
|
2024-05-02 00:46:19 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
platform = stdenv.hostPlatform.rust.rustcTarget;
|
|
|
|
|
|
|
|
src = fetchurl {
|
2024-06-30 08:12:46 +00:00
|
|
|
url = "https://static.rust-lang.org/dist/rust-${version}-${platform}.tar.gz";
|
|
|
|
sha256 = hashes.${platform} or (throw "missing bootstrap url for platform ${platform}");
|
2024-05-02 00:46:19 +00:00
|
|
|
};
|
|
|
|
|
2024-06-30 08:12:46 +00:00
|
|
|
in
|
|
|
|
callPackage ./binary.nix {
|
|
|
|
inherit version src platform;
|
|
|
|
versionType = "bootstrap";
|
|
|
|
}
|