mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 09:13:17 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
33 lines
1.0 KiB
Nix
33 lines
1.0 KiB
Nix
{ fetchCrate
|
|
, lib
|
|
, rustPlatform
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "paging-calculator";
|
|
version = "0.4.0";
|
|
|
|
src = fetchCrate {
|
|
inherit pname version;
|
|
hash = "sha256-mTHBARrcq8cJxzh80v/fGr5vACAMyy/DhN8zpQTV0jM=";
|
|
};
|
|
|
|
cargoHash = "sha256-oQQA+AGsuMKaFhoZRuv3BASCLJwfgbrdK+2noxBLm7k=";
|
|
|
|
meta = {
|
|
description = "CLI utility that helps calculating page table indices from a virtual address";
|
|
mainProgram = "paging-calculator";
|
|
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 ];
|
|
};
|
|
}
|