3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/compilers/rust/bootstrap.nix

15 lines
415 B
Nix
Raw Normal View History

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