about summary refs log tree commit diff
path: root/pkgs/development/tools/rust/bootimage/default.nix
blob: 9da7aeaa8cc340e6e6c140fc8aacacbc68823eb9 (plain) (blame)
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
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
}:

rustPlatform.buildRustPackage rec {
  pname = "bootimage";
  version = "0.10.3";

  src = fetchFromGitHub {
    owner = "rust-osdev";
    repo = pname;
    rev = "v${version}";
    sha256 = "12p18mk3l473is3ydv3zmn6s7ck8wgjwavllimcpja3yjilxm3zg";
  };

  cargoSha256 = "03jximwqgjq7359c5mxbyfja2d04y57h34f87aby8jy0lz99jy2x";

  meta = with lib; {
    description = "Creates a bootable disk image from a Rust OS kernel.";
    homepage = "https://github.com/rust-osdev/bootimage";
    license = with licenses; [ asl20 mit ];
    maintainers = with maintainers; [ dbeckwith ];
  };
}