0x: init at unstable-2022-07-11

0x is a colorful, configurable xxd written in Rust.

+265
+236
pkgs/tools/misc/0x/add-Cargo-lock.diff
···
··· 1 + diff -Naur 0x-main.old/Cargo.lock 0x-main/Cargo.lock 2 + --- 0x-main.old/Cargo.lock 1969-12-31 21:00:00.000000000 -0300 3 + +++ 0x-main/Cargo.lock 2022-08-12 02:28:29.538688138 -0300 4 + @@ -0,0 +1,232 @@ 5 + +# This file is automatically @generated by Cargo. 6 + +# It is not intended for manual editing. 7 + +version = 3 8 + + 9 + +[[package]] 10 + +name = "approx" 11 + +version = "0.5.1" 12 + +source = "registry+https://github.com/rust-lang/crates.io-index" 13 + +checksum = "cab112f0a86d568ea0e627cc1d6be74a1e9cd55214684db5561995f6dad897c6" 14 + +dependencies = [ 15 + + "num-traits", 16 + +] 17 + + 18 + +[[package]] 19 + +name = "argh" 20 + +version = "0.1.8" 21 + +source = "registry+https://github.com/rust-lang/crates.io-index" 22 + +checksum = "a7e7e4aa7e40747e023c0761dafcb42333a9517575bbf1241747f68dd3177a62" 23 + +dependencies = [ 24 + + "argh_derive", 25 + + "argh_shared", 26 + +] 27 + + 28 + +[[package]] 29 + +name = "argh_derive" 30 + +version = "0.1.8" 31 + +source = "registry+https://github.com/rust-lang/crates.io-index" 32 + +checksum = "69f2bd7ff6ed6414f4e5521bd509bae46454bbd513801767ced3f21a751ab4bc" 33 + +dependencies = [ 34 + + "argh_shared", 35 + + "heck", 36 + + "proc-macro2", 37 + + "quote", 38 + + "syn", 39 + +] 40 + + 41 + +[[package]] 42 + +name = "argh_shared" 43 + +version = "0.1.8" 44 + +source = "registry+https://github.com/rust-lang/crates.io-index" 45 + +checksum = "47253b98986dafc7a3e1cf3259194f1f47ac61abb57a57f46ec09e48d004ecda" 46 + + 47 + +[[package]] 48 + +name = "autocfg" 49 + +version = "1.1.0" 50 + +source = "registry+https://github.com/rust-lang/crates.io-index" 51 + +checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" 52 + + 53 + +[[package]] 54 + +name = "colorous" 55 + +version = "1.0.8" 56 + +source = "registry+https://github.com/rust-lang/crates.io-index" 57 + +checksum = "882e392738ed515520f38708166e9efec85ee154f80bf1fc64510e2fc54bf481" 58 + + 59 + +[[package]] 60 + +name = "find-crate" 61 + +version = "0.6.3" 62 + +source = "registry+https://github.com/rust-lang/crates.io-index" 63 + +checksum = "59a98bbaacea1c0eb6a0876280051b892eb73594fd90cf3b20e9c817029c57d2" 64 + +dependencies = [ 65 + + "toml", 66 + +] 67 + + 68 + +[[package]] 69 + +name = "heck" 70 + +version = "0.3.3" 71 + +source = "registry+https://github.com/rust-lang/crates.io-index" 72 + +checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c" 73 + +dependencies = [ 74 + + "unicode-segmentation", 75 + +] 76 + + 77 + +[[package]] 78 + +name = "num-traits" 79 + +version = "0.2.15" 80 + +source = "registry+https://github.com/rust-lang/crates.io-index" 81 + +checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd" 82 + +dependencies = [ 83 + + "autocfg", 84 + +] 85 + + 86 + +[[package]] 87 + +name = "ohx" 88 + +version = "0.1.0" 89 + +dependencies = [ 90 + + "argh", 91 + + "colorous", 92 + + "palette", 93 + +] 94 + + 95 + +[[package]] 96 + +name = "palette" 97 + +version = "0.6.1" 98 + +source = "registry+https://github.com/rust-lang/crates.io-index" 99 + +checksum = "8f9cd68f7112581033f157e56c77ac4a5538ec5836a2e39284e65bd7d7275e49" 100 + +dependencies = [ 101 + + "approx", 102 + + "num-traits", 103 + + "palette_derive", 104 + + "phf", 105 + +] 106 + + 107 + +[[package]] 108 + +name = "palette_derive" 109 + +version = "0.6.1" 110 + +source = "registry+https://github.com/rust-lang/crates.io-index" 111 + +checksum = "05eedf46a8e7c27f74af0c9cfcdb004ceca158cb1b918c6f68f8d7a549b3e427" 112 + +dependencies = [ 113 + + "find-crate", 114 + + "proc-macro2", 115 + + "quote", 116 + + "syn", 117 + +] 118 + + 119 + +[[package]] 120 + +name = "phf" 121 + +version = "0.11.1" 122 + +source = "registry+https://github.com/rust-lang/crates.io-index" 123 + +checksum = "928c6535de93548188ef63bb7c4036bd415cd8f36ad25af44b9789b2ee72a48c" 124 + +dependencies = [ 125 + + "phf_macros", 126 + + "phf_shared", 127 + +] 128 + + 129 + +[[package]] 130 + +name = "phf_generator" 131 + +version = "0.11.1" 132 + +source = "registry+https://github.com/rust-lang/crates.io-index" 133 + +checksum = "b1181c94580fa345f50f19d738aaa39c0ed30a600d95cb2d3e23f94266f14fbf" 134 + +dependencies = [ 135 + + "phf_shared", 136 + + "rand", 137 + +] 138 + + 139 + +[[package]] 140 + +name = "phf_macros" 141 + +version = "0.11.1" 142 + +source = "registry+https://github.com/rust-lang/crates.io-index" 143 + +checksum = "92aacdc5f16768709a569e913f7451034034178b05bdc8acda226659a3dccc66" 144 + +dependencies = [ 145 + + "phf_generator", 146 + + "phf_shared", 147 + + "proc-macro2", 148 + + "quote", 149 + + "syn", 150 + +] 151 + + 152 + +[[package]] 153 + +name = "phf_shared" 154 + +version = "0.11.1" 155 + +source = "registry+https://github.com/rust-lang/crates.io-index" 156 + +checksum = "e1fb5f6f826b772a8d4c0394209441e7d37cbbb967ae9c7e0e8134365c9ee676" 157 + +dependencies = [ 158 + + "siphasher", 159 + +] 160 + + 161 + +[[package]] 162 + +name = "proc-macro2" 163 + +version = "1.0.43" 164 + +source = "registry+https://github.com/rust-lang/crates.io-index" 165 + +checksum = "0a2ca2c61bc9f3d74d2886294ab7b9853abd9c1ad903a3ac7815c58989bb7bab" 166 + +dependencies = [ 167 + + "unicode-ident", 168 + +] 169 + + 170 + +[[package]] 171 + +name = "quote" 172 + +version = "1.0.21" 173 + +source = "registry+https://github.com/rust-lang/crates.io-index" 174 + +checksum = "bbe448f377a7d6961e30f5955f9b8d106c3f5e449d493ee1b125c1d43c2b5179" 175 + +dependencies = [ 176 + + "proc-macro2", 177 + +] 178 + + 179 + +[[package]] 180 + +name = "rand" 181 + +version = "0.8.5" 182 + +source = "registry+https://github.com/rust-lang/crates.io-index" 183 + +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" 184 + +dependencies = [ 185 + + "rand_core", 186 + +] 187 + + 188 + +[[package]] 189 + +name = "rand_core" 190 + +version = "0.6.3" 191 + +source = "registry+https://github.com/rust-lang/crates.io-index" 192 + +checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7" 193 + + 194 + +[[package]] 195 + +name = "serde" 196 + +version = "1.0.143" 197 + +source = "registry+https://github.com/rust-lang/crates.io-index" 198 + +checksum = "53e8e5d5b70924f74ff5c6d64d9a5acd91422117c60f48c4e07855238a254553" 199 + + 200 + +[[package]] 201 + +name = "siphasher" 202 + +version = "0.3.10" 203 + +source = "registry+https://github.com/rust-lang/crates.io-index" 204 + +checksum = "7bd3e3206899af3f8b12af284fafc038cc1dc2b41d1b89dd17297221c5d225de" 205 + + 206 + +[[package]] 207 + +name = "syn" 208 + +version = "1.0.99" 209 + +source = "registry+https://github.com/rust-lang/crates.io-index" 210 + +checksum = "58dbef6ec655055e20b86b15a8cc6d439cca19b667537ac6a1369572d151ab13" 211 + +dependencies = [ 212 + + "proc-macro2", 213 + + "quote", 214 + + "unicode-ident", 215 + +] 216 + + 217 + +[[package]] 218 + +name = "toml" 219 + +version = "0.5.9" 220 + +source = "registry+https://github.com/rust-lang/crates.io-index" 221 + +checksum = "8d82e1a7758622a465f8cee077614c73484dac5b836c02ff6a40d5d1010324d7" 222 + +dependencies = [ 223 + + "serde", 224 + +] 225 + + 226 + +[[package]] 227 + +name = "unicode-ident" 228 + +version = "1.0.3" 229 + +source = "registry+https://github.com/rust-lang/crates.io-index" 230 + +checksum = "c4f5b37a154999a8f3f98cc23a628d850e154479cd94decf3414696e12e31aaf" 231 + + 232 + +[[package]] 233 + +name = "unicode-segmentation" 234 + +version = "1.9.0" 235 + +source = "registry+https://github.com/rust-lang/crates.io-index" 236 + +checksum = "7e8820f5d777f6224dc4be3632222971ac30164d4a258d595640799554ebfd99"
+27
pkgs/tools/misc/0x/default.nix
···
··· 1 + { lib 2 + , fetchFromGitHub 3 + , rustPlatform 4 + }: 5 + 6 + rustPlatform.buildRustPackage { 7 + pname = "0x"; 8 + version = "unstable-2022-07-11"; 9 + 10 + src = fetchFromGitHub { 11 + owner = "mcy"; 12 + repo = "0x"; 13 + rev = "8070704b8efdd1f16bc7e01e393230f16cd8b0a6"; 14 + hash = "sha256-NzD/j8rBfk/cpoBnkFHFqpXz58mswLZr8TUS16vlrZQ="; 15 + }; 16 + 17 + cargoPatches = [ ./add-Cargo-lock.diff ]; 18 + 19 + cargoHash = "sha256-3qaPGIbl1jF4784KGxbfBTgW/0ayxIO9Ufp9vkhIJa4="; 20 + 21 + meta = with lib; { 22 + homepage = "https://github.com/mcy/0x"; 23 + description = "A colorful, configurable xxd"; 24 + license = licenses.asl20; 25 + maintainers = with maintainers; [ AndersonTorres ]; 26 + }; 27 + }
+2
pkgs/top-level/all-packages.nix
··· 242 243 atkinson-hyperlegible = callPackage ../data/fonts/atkinson-hyperlegible { }; 244 245 atuin = callPackage ../tools/misc/atuin { 246 inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration; 247 };
··· 242 243 atkinson-hyperlegible = callPackage ../data/fonts/atkinson-hyperlegible { }; 244 245 + _0x = callPackage ../tools/misc/0x { }; 246 + 247 atuin = callPackage ../tools/misc/atuin { 248 inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration; 249 };