2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
14 lines
408 B
Nix
14 lines
408 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";
|
|
}
|