nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
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 = "bootimage";
14 rev = "v${version}";
15 sha256 = "12p18mk3l473is3ydv3zmn6s7ck8wgjwavllimcpja3yjilxm3zg";
16 };
17
18 cargoHash = "sha256-CkFJHW7yrIJi/KMGJgyhnLTMkrxnDwO3X4M1aml9cuM=";
19
20 meta = {
21 description = "Creates a bootable disk image from a Rust OS kernel";
22 homepage = "https://github.com/rust-osdev/bootimage";
23 license = with lib.licenses; [
24 asl20
25 mit
26 ];
27 maintainers = with lib.maintainers; [ dbeckwith ];
28 };
29}