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";
|
|
|
|
version = "0.5.8";
|
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-04-11 21:33:28 +01:00
|
|
|
sha256 = "1ckrvgdjwkxvy3rc6kix9maynn87al0n7lsjshc9mdmkyvvx8h55";
|
2019-04-10 11:05:24 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoSha256 = "077qiqm470iqcgxqjzbmzxikxd5862vyg788hacli4yzpvyaq9r9";
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|