core/pkgs/by-name/ru/rust/bootstrap.nix
2024-06-30 09:16:52 +01:00

22 lines
413 B
Nix

{
stdenv,
fetchurl,
callPackage,
version,
hashes,
}:
let
platform = stdenv.hostPlatform.rust.rustcTarget;
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";
}