1{ lib
2, stdenv
3, rustPlatform
4, fetchFromGitHub
5}:
6
7rustPlatform.buildRustPackage rec {
8 pname = "bootimage";
9 version = "0.10.3";
10
11 src = fetchFromGitHub {
12 owner = "rust-osdev";
13 repo = pname;
14 rev = "v${version}";
15 sha256 = "12p18mk3l473is3ydv3zmn6s7ck8wgjwavllimcpja3yjilxm3zg";
16 };
17
18 cargoSha256 = "03jximwqgjq7359c5mxbyfja2d04y57h34f87aby8jy0lz99jy2x";
19
20 meta = with lib; {
21 description = "Creates a bootable disk image from a Rust OS kernel.";
22 homepage = "https://github.com/rust-osdev/bootimage";
23 license = with licenses; [ asl20 mit ];
24 maintainers = with maintainers; [ dbeckwith ];
25 };
26}