Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
413 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
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";
}