mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
15 lines
415 B
Nix
15 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";
|
|
}
|