nixpkgs/pkgs/development/tools/paging-calculator/default.nix

32 lines
1.0 KiB
Nix
Raw Normal View History

2023-02-17 20:35:24 +00:00
{ fetchCrate
, lib
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
pname = "paging-calculator";
version = "0.2.0";
2023-02-17 20:35:24 +00:00
src = fetchCrate {
inherit pname version;
hash = "sha256-GxugaNLkLy71X/E9EAn/2p2ReSHvs5TvXAxg8csu9uc=";
2023-02-17 20:35:24 +00:00
};
cargoHash = "sha256-a1yryyKCcNQVurqnb+AZiBQ0rilNsuXmSsFoaaBe+r8=";
2023-02-17 20:35:24 +00:00
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.
2023-02-17 20:35:24 +00: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 20:35:24 +00: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 ];
};
}