24 lines
695 B
Nix
Raw Normal View History

2019-04-10 18:05:24 +08:00
{ stdenv, fetchFromGitHub, rustPlatform }:
rustPlatform.buildRustPackage rec {
2019-04-12 04:33:28 +08:00
pname = "cargo-xbuild";
version = "0.5.18";
2019-04-10 18:05:24 +08:00
src = fetchFromGitHub {
owner = "rust-osdev";
2019-04-12 04:33:28 +08:00
repo = pname;
2019-07-18 01:02:53 +08:00
rev = "v${version}";
sha256 = "1hcsdwwl1xc59f1ppwlxj1zyp1md07z70gfvg4zqvafc6dzx708j";
2019-04-10 18:05:24 +08:00
};
cargoSha256 = "1pj4x8y5vfpnn8vhxqqm3vicn29870r3jh0b17q3riq4vz1a2afp";
2019-04-10 18:05:24 +08:00
meta = with stdenv.lib; {
description = "Automatically cross-compiles the sysroot crates core, compiler_builtins, and alloc";
2019-06-14 11:24:26 +08:00
homepage = "https://github.com/rust-osdev/cargo-xbuild";
2019-04-10 18:05:24 +08:00
license = with licenses; [ mit asl20 ];
2019-05-25 09:49:23 +08:00
maintainers = with maintainers; [ xrelkd ];
2019-04-10 18:05:24 +08:00
platforms = platforms.all;
};
}