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-02-12 16:06:30 -08:00
|
|
|
version = "0.5.24";
|
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-02-12 16:06:30 -08:00
|
|
|
sha256 = "1haq8gv4k6qgihyjplf76589d2hbb1720g6yvwk88aksjxmqj4jm";
|
2019-04-10 03:05:24 -07:00
|
|
|
};
|
|
|
|
|
2020-02-13 18:00:26 -08:00
|
|
|
# Delete this on next update; see #79975 for details
|
|
|
|
legacyCargoFetcher = true;
|
|
|
|
|
2020-02-12 16:06:30 -08:00
|
|
|
cargoSha256 = "011r5n68ay94dvfm37xpd9s8x086l6qsll74iw98hcvw3inxp1ws";
|
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 ];
|
2019-05-24 18:49:23 -07:00
|
|
|
maintainers = with maintainers; [ xrelkd ];
|
2019-04-10 03:05:24 -07:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|