···2929 pexpect
3030 ];
31313232+ nativeBuildInputs = [
3333+ # For cross compilation the doCheck is false and therefor the
3434+ # nativeCheckInputs not included. We have to include nose here, since
3535+ # setup.py requires nose unconditionally.
3636+ nose
3737+ ];
3838+3239 nativeCheckInputs = [
3340 mock
3434- nose
3541 pytestCheckHook
3642 ]
3743 ++ passthru.optional-dependencies.GATTTOOL;
···11+{ fetchCrate
22+, lib
33+, rustPlatform
44+}:
55+66+rustPlatform.buildRustPackage rec {
77+ pname = "paging-calculator";
88+ version = "0.1.2";
99+1010+ src = fetchCrate {
1111+ inherit pname version;
1212+ hash = "sha256-9DbpfJbarWXYGNzTqfHHSaKFqSJ59E/VhOhuMUWk8ho=";
1313+ };
1414+1515+ cargoHash = "sha256-IfOhJwR5eRHeeAbEZ8zeUVojQXtrYHdzAeht/lvdlUQ=";
1616+1717+ meta = {
1818+ description = "CLI utility that helps calculating page table indices from a virtual address";
1919+ longDescription = ''
2020+ paging-calculator is a CLI utility written in Rust that helps you find the indices that a virtual
2121+ address will have on different architectures or paging implementations.
2222+2323+ It takes a (virtual) address in hexadecimal format and shows you which index will be used for
2424+ what page-table level. It can be installed with $ cargo install paging-calculator.
2525+ '';
2626+ homepage = "https://github.com/phip1611/paging-calculator";
2727+ changelog = "https://github.com/phip1611/paging-calculator/blob/v${version}/CHANGELOG.md";
2828+ license = with lib.licenses; [ mit ];
2929+ maintainers = with lib.maintainers; [ phip1611 ];
3030+ };
3131+}
+30
pkgs/development/tools/wambo/default.nix
···11+{ fetchCrate
22+, lib
33+, rustPlatform
44+}:
55+66+rustPlatform.buildRustPackage rec {
77+ pname = "wambo";
88+ version = "0.3.1";
99+1010+ src = fetchCrate {
1111+ inherit pname version;
1212+ hash = "sha256-WZQgQmoFmsWLgPYRWonJmyKq9IIJ+a6J+O19XPppJG4=";
1313+ };
1414+1515+ cargoHash = "sha256-ghUdhWW5gURWxj/OhbcKPNeLzeJvndqAxEZmwKBATUk=";
1616+1717+ meta = {
1818+ description = "All-in-one tool to convert decimal/bin/oct/hex and interpret bits as integers";
1919+ longDescription = ''
2020+ wambo is a binary that can easily shows you a numeric value in all important numeral systems
2121+ (bin, hex, dec) + interprets the input as both signed and unsigned values (from i8 to i64,
2222+ including f32 and f64). It also easily calculates you mibibytes to bytes, kilobytes to gibibytes,
2323+ and so on.
2424+ '';
2525+ homepage = "https://github.com/phip1611/wambo";
2626+ changelog = "https://github.com/phip1611/wambo/blob/v${version}/CHANGELOG.md";
2727+ license = with lib.licenses; [ mit ];
2828+ maintainers = with lib.maintainers; [ phip1611 ];
2929+ };
3030+}
···11+{ fetchCrate
22+, lib
33+, rustPlatform
44+}:
55+66+rustPlatform.buildRustPackage rec {
77+ pname = "nflz";
88+ version = "1.0.2";
99+1010+ src = fetchCrate {
1111+ inherit pname version;
1212+ hash = "sha256-c9+79zrIU/M1Rh+DiaLJzbrNSa4IKrYk1gP0dsabUiw=";
1313+ };
1414+1515+ cargoHash = "sha256-+SOoZFVJ6mASRKufQE4JmHGKR5rbBgg1PmCrI6dvvko=";
1616+1717+ # Tests do not work in the package published on crates.io, since the folder
1818+ # with test resources is not packaged.
1919+ doCheck = false;
2020+2121+ meta = {
2222+ description = "Numbered Files Leading Zeros helps you to manage ascending numbered file names";
2323+ longDescription = ''
2424+ CLI to add leading zeros to ascending numbered file names.
2525+ NFLZ stands for Numbered Files Leading Zeros.
2626+2727+ This library helps you to manage files inside your file system that
2828+ belong to a set of ordered files. An example are photos from a camera.
2929+ '';
3030+ homepage = "https://github.com/phip1611/nflz";
3131+ license = with lib.licenses; [ mit ];
3232+ maintainers = with lib.maintainers; [ phip1611 ];
3333+ };
3434+}