2020-08-25 16:59:57 +08:00
|
|
|
{ pkgs }:
|
2020-08-24 16:09:00 +08:00
|
|
|
pkgs.rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-xbuild";
|
|
|
|
version = "0.5.21";
|
|
|
|
|
2020-08-25 16:59:57 +08:00
|
|
|
src = pkgs.fetchFromGitHub {
|
2020-08-24 16:09:00 +08:00
|
|
|
owner = "rust-osdev";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "08mpnj3l6bcm1jg22lw1gcs0lkm4320fwl4p5y1s44w64963kzf7";
|
|
|
|
};
|
|
|
|
|
2020-08-25 17:39:42 +08:00
|
|
|
patches = [ ./cargo-xbuild.patch ];
|
2020-08-24 16:09:00 +08:00
|
|
|
|
|
|
|
cargoSha256 = "1pj4x8y5vfpnn8vhxqqm3vicn29870r3jh0b17q3riq4vz1a2afp";
|
|
|
|
|
2020-08-25 16:59:57 +08:00
|
|
|
meta = with pkgs.stdenv.lib; {
|
2020-08-24 16:09:00 +08:00
|
|
|
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; [ johntitor xrelkd ];
|
|
|
|
};
|
|
|
|
}
|