2019-04-10 11:05:24 +01:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-04-11 21:33:28 +01:00
|
|
|
pname = "cargo-xbuild";
|
2019-06-01 07:51:23 +01:00
|
|
|
version = "0.5.11";
|
2019-04-10 11:05:24 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rust-osdev";
|
2019-04-11 21:33:28 +01:00
|
|
|
repo = pname;
|
2019-04-10 11:05:24 +01:00
|
|
|
rev = "v${version}";
|
2019-06-01 07:51:23 +01:00
|
|
|
sha256 = "04vgb443bmrfklvzhjfidpi3pp2svbc3bwq674m9fn7sbdp6rnwm";
|
2019-04-10 11:05:24 +01:00
|
|
|
};
|
|
|
|
|
2019-05-25 02:49:23 +01:00
|
|
|
cargoSha256 = "1r9i79lymfwpbcx2lp509v435qpkl9bqly1ya369p41n5yprrcjv";
|
2019-04-10 11:05:24 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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 ];
|
2019-05-25 02:49:23 +01:00
|
|
|
maintainers = with maintainers; [ xrelkd ];
|
2019-04-10 11:05:24 +01:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|