···29 pexpect
30 ];
3132+ nativeBuildInputs = [
33+ # For cross compilation the doCheck is false and therefor the
34+ # nativeCheckInputs not included. We have to include nose here, since
35+ # setup.py requires nose unconditionally.
36+ nose
37+ ];
38+39 nativeCheckInputs = [
40 mock
041 pytestCheckHook
42 ]
43 ++ passthru.optional-dependencies.GATTTOOL;
···1+{ fetchCrate
2+, lib
3+, rustPlatform
4+}:
5+6+rustPlatform.buildRustPackage rec {
7+ pname = "paging-calculator";
8+ version = "0.1.2";
9+10+ src = fetchCrate {
11+ inherit pname version;
12+ hash = "sha256-9DbpfJbarWXYGNzTqfHHSaKFqSJ59E/VhOhuMUWk8ho=";
13+ };
14+15+ cargoHash = "sha256-IfOhJwR5eRHeeAbEZ8zeUVojQXtrYHdzAeht/lvdlUQ=";
16+17+ meta = {
18+ description = "CLI utility that helps calculating page table indices from a virtual address";
19+ longDescription = ''
20+ paging-calculator is a CLI utility written in Rust that helps you find the indices that a virtual
21+ address will have on different architectures or paging implementations.
22+23+ It takes a (virtual) address in hexadecimal format and shows you which index will be used for
24+ what page-table level. It can be installed with $ cargo install paging-calculator.
25+ '';
26+ homepage = "https://github.com/phip1611/paging-calculator";
27+ changelog = "https://github.com/phip1611/paging-calculator/blob/v${version}/CHANGELOG.md";
28+ license = with lib.licenses; [ mit ];
29+ maintainers = with lib.maintainers; [ phip1611 ];
30+ };
31+}
+30
pkgs/development/tools/wambo/default.nix
···000000000000000000000000000000
···1+{ fetchCrate
2+, lib
3+, rustPlatform
4+}:
5+6+rustPlatform.buildRustPackage rec {
7+ pname = "wambo";
8+ version = "0.3.1";
9+10+ src = fetchCrate {
11+ inherit pname version;
12+ hash = "sha256-WZQgQmoFmsWLgPYRWonJmyKq9IIJ+a6J+O19XPppJG4=";
13+ };
14+15+ cargoHash = "sha256-ghUdhWW5gURWxj/OhbcKPNeLzeJvndqAxEZmwKBATUk=";
16+17+ meta = {
18+ description = "All-in-one tool to convert decimal/bin/oct/hex and interpret bits as integers";
19+ longDescription = ''
20+ wambo is a binary that can easily shows you a numeric value in all important numeral systems
21+ (bin, hex, dec) + interprets the input as both signed and unsigned values (from i8 to i64,
22+ including f32 and f64). It also easily calculates you mibibytes to bytes, kilobytes to gibibytes,
23+ and so on.
24+ '';
25+ homepage = "https://github.com/phip1611/wambo";
26+ changelog = "https://github.com/phip1611/wambo/blob/v${version}/CHANGELOG.md";
27+ license = with lib.licenses; [ mit ];
28+ maintainers = with lib.maintainers; [ phip1611 ];
29+ };
30+}
···1+{ fetchCrate
2+, lib
3+, rustPlatform
4+}:
5+6+rustPlatform.buildRustPackage rec {
7+ pname = "nflz";
8+ version = "1.0.2";
9+10+ src = fetchCrate {
11+ inherit pname version;
12+ hash = "sha256-c9+79zrIU/M1Rh+DiaLJzbrNSa4IKrYk1gP0dsabUiw=";
13+ };
14+15+ cargoHash = "sha256-+SOoZFVJ6mASRKufQE4JmHGKR5rbBgg1PmCrI6dvvko=";
16+17+ # Tests do not work in the package published on crates.io, since the folder
18+ # with test resources is not packaged.
19+ doCheck = false;
20+21+ meta = {
22+ description = "Numbered Files Leading Zeros helps you to manage ascending numbered file names";
23+ longDescription = ''
24+ CLI to add leading zeros to ascending numbered file names.
25+ NFLZ stands for Numbered Files Leading Zeros.
26+27+ This library helps you to manage files inside your file system that
28+ belong to a set of ordered files. An example are photos from a camera.
29+ '';
30+ homepage = "https://github.com/phip1611/nflz";
31+ license = with lib.licenses; [ mit ];
32+ maintainers = with lib.maintainers; [ phip1611 ];
33+ };
34+}