2019-04-10 10:05:24 +00:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-04-11 20:33:28 +00:00
|
|
|
pname = "cargo-xbuild";
|
2020-02-28 22:50:46 +00:00
|
|
|
version = "0.5.28";
|
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-02-28 22:50:46 +00:00
|
|
|
sha256 = "1rczflf6fllxkag5nah195shwqvqmlna9a1gkcwp9ljlgxlr9zvq";
|
2019-04-10 10:05:24 +00:00
|
|
|
};
|
|
|
|
|
2020-02-28 22:50:46 +00:00
|
|
|
cargoSha256 = "0xr8wpcw3x0343hm6clygsbikhrp6gcqb8vh7g7h9nijjrbnzxxb";
|
2019-04-10 10:05:24 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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 ];
|
2019-05-25 01:49:23 +00:00
|
|
|
maintainers = with maintainers; [ xrelkd ];
|
2019-04-10 10:05:24 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|