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