-
Notifications
You must be signed in to change notification settings - Fork 4
/
xbuild.nix
33 lines (28 loc) · 828 Bytes
/
xbuild.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
* xbuild
*/
{ stdenv, fetchFromGitHub, rustPlatform, pkgs }:
rustPlatform.buildRustPackage rec {
version = "v0.5.29";
pname = "cargo-xbuild";
src = fetchFromGitHub {
owner = "rust-osdev";
repo = "cargo-xbuild";
rev = version;
sha256 = "05wg1xx2mcwb9cplmrpg13jimddlzmv7hf5g3vjppjp8kz2gb7zj";
};
propagatedBuildInputs = [
pkgs.ncurses
];
cargoSha256 = "1pj8zfkr51y7lbjg9c3di4gr8a2l0z5gqslk6wmsiry6vcj2sks1";
/*
* Just copied from upstream crates.io
*/
meta = with stdenv.lib; {
description = "Automatically cross-compiles the sysroot crates core, compiler_builtins, and alloc.";
homepage = https://github.com/rust-osdev/cargo-xbuild;
maintainers = with maintainers; [ "phil-opp" ];
license = with licenses; [ mit asl20 ];
platforms = platforms.unix;
};
}