8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
14 lines
415 B
Nix
14 lines
415 B
Nix
{ stdenv, fetchurl, rust, callPackage, version, hashes }:
|
|
|
|
let
|
|
platform = rust.toRustTarget stdenv.hostPlatform;
|
|
|
|
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";
|
|
}
|