2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-xbuild";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.6.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rust-osdev";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-29rCjmzxxIjR5nBN2J3xxP+r8NnPIJV90FkSQQEBbo4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
cargoHash = "sha256-tyPhKWDSDNxQy+vpWNS5VP5D8TkUR7MJSAlG8wZsDy4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Automatically cross-compiles the sysroot crates core, compiler_builtins, and alloc";
|
|
|
|
homepage = "https://github.com/rust-osdev/cargo-xbuild";
|
|
|
|
license = with licenses; [ mit asl20 ];
|
2020-08-20 17:08:02 +00:00
|
|
|
maintainers = with maintainers; [ johntitor xrelkd ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|