nixpkgs/pkgs/development/compilers/rust/bootstrap.nix

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

15 lines
408 B
Nix
Raw Normal View History

{ 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}");
};
2019-08-15 15:50:28 +00:00
in callPackage ./binary.nix
{ inherit version src platform;
versionType = "bootstrap";
}