Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
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";
|
|
}
|