depot/third_party/nixpkgs/pkgs/development/tools/paging-calculator/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

31 lines
1 KiB
Nix

{ fetchCrate
, lib
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
pname = "paging-calculator";
version = "0.3.0";
src = fetchCrate {
inherit pname version;
hash = "sha256-uoijIA9xmifxHlMRo5Rh/Qy1wxiiCNLJnDysI01uPvk=";
};
cargoHash = "sha256-RbBlZCRVXZLXvz+/olkh2MqJiWq63AwLvo+/5UGRuyM=";
meta = {
description = "CLI utility that helps calculating page table indices from a virtual address";
longDescription = ''
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.
It takes a (virtual) address in hexadecimal format and shows you which index is used for
which level of the page table.
'';
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 ];
};
}