2019-04-10 03:05:24 -07:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-04-11 13:33:28 -07:00
|
|
|
pname = "cargo-xbuild";
|
2020-10-11 05:07:15 -07:00
|
|
|
version = "0.6.2";
|
2019-04-10 03:05:24 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rust-osdev";
|
2019-04-11 13:33:28 -07:00
|
|
|
repo = pname;
|
2019-07-17 10:02:53 -07:00
|
|
|
rev = "v${version}";
|
2020-10-11 05:07:15 -07:00
|
|
|
sha256 = "01whdjryz6zjsk4149h72w5xdjnkpcn5daf0xnsb59b0q38hjgg9";
|
2019-04-10 03:05:24 -07:00
|
|
|
};
|
|
|
|
|
2020-10-11 05:07:15 -07:00
|
|
|
cargoSha256 = "1gcixzxca1yi4rvy55s986my6j0vx7n6fm1g5r4v4w0zgzlz4d89";
|
2019-04-10 03:05:24 -07:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Automatically cross-compiles the sysroot crates core, compiler_builtins, and alloc";
|
2019-06-13 20:24:26 -07:00
|
|
|
homepage = "https://github.com/rust-osdev/cargo-xbuild";
|
2019-04-10 03:05:24 -07:00
|
|
|
license = with licenses; [ mit asl20 ];
|
2020-08-14 20:21:34 -07:00
|
|
|
maintainers = with maintainers; [ johntitor xrelkd ];
|
2019-04-10 03:05:24 -07:00
|
|
|
};
|
|
|
|
}
|