depot/third_party/nixpkgs/pkgs/development/tools/rust/bootimage/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

25 lines
619 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
}:
rustPlatform.buildRustPackage rec {
pname = "bootimage";
version = "0.10.3";
src = fetchFromGitHub {
owner = "rust-osdev";
repo = pname;
rev = "v${version}";
sha256 = "12p18mk3l473is3ydv3zmn6s7ck8wgjwavllimcpja3yjilxm3zg";
};
cargoHash = "sha256-XXiZ0qfAS+SXOsiRAU/xBDShpPOr18JSGQfLh3mNXQ4=";
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 ];
};
}