2023-02-17 21:35:24 +01:00
|
|
|
{ fetchCrate
|
|
|
|
, lib
|
|
|
|
, rustPlatform
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "paging-calculator";
|
2023-09-22 15:24:30 +02:00
|
|
|
version = "0.3.0";
|
2023-02-17 21:35:24 +01:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2023-09-22 15:24:30 +02:00
|
|
|
hash = "sha256-uoijIA9xmifxHlMRo5Rh/Qy1wxiiCNLJnDysI01uPvk=";
|
2023-02-17 21:35:24 +01:00
|
|
|
};
|
|
|
|
|
2023-09-22 15:24:30 +02:00
|
|
|
cargoHash = "sha256-RbBlZCRVXZLXvz+/olkh2MqJiWq63AwLvo+/5UGRuyM=";
|
2023-02-17 21:35:24 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "CLI utility that helps calculating page table indices from a virtual address";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "paging-calculator";
|
2023-02-17 21:35:24 +01:00
|
|
|
longDescription = ''
|
2023-03-14 01:38:09 +01:00
|
|
|
paging-calculator is a CLI utility written in Rust that helps you finding the indices that a
|
|
|
|
virtual address will have into the page tables on different architectures.
|
2023-02-17 21:35:24 +01:00
|
|
|
|
2023-03-14 01:38:09 +01:00
|
|
|
It takes a (virtual) address in hexadecimal format and shows you which index is used for
|
|
|
|
which level of the page table.
|
2023-02-17 21:35:24 +01:00
|
|
|
'';
|
|
|
|
homepage = "https://github.com/phip1611/paging-calculator";
|
|
|
|
changelog = "https://github.com/phip1611/paging-calculator/blob/v${version}/CHANGELOG.md";
|
|
|
|
license = with lib.licenses; [ mit ];
|
|
|
|
maintainers = with lib.maintainers; [ phip1611 ];
|
|
|
|
};
|
|
|
|
}
|