forked from mirrors/nixpkgs
24 lines
695 B
Nix
24 lines
695 B
Nix
{ stdenv, fetchFromGitHub, rustPlatform }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-xbuild";
|
|
version = "0.5.28";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rust-osdev";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1rczflf6fllxkag5nah195shwqvqmlna9a1gkcwp9ljlgxlr9zvq";
|
|
};
|
|
|
|
cargoSha256 = "0xr8wpcw3x0343hm6clygsbikhrp6gcqb8vh7g7h9nijjrbnzxxb";
|
|
|
|
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 ];
|
|
maintainers = with maintainers; [ xrelkd ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|