1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 testers,
6 hex,
7}:
8
9rustPlatform.buildRustPackage rec {
10 pname = "hex";
11 version = "0.6.0";
12
13 src = fetchFromGitHub {
14 owner = "sitkevij";
15 repo = "hex";
16 rev = "v${version}";
17 hash = "sha256-YctXDhCMJvDQLPsuhzdyYDUIlFE2vKltNtrFFeE7YE8=";
18 };
19
20 cargoHash = "sha256-3lrNZyQVP+gswbF+pqQmVIHg3bjiJ22y87PtTHDwIXs=";
21
22 passthru.tests.version = testers.testVersion {
23 package = hex;
24 version = "hx ${version}";
25 };
26
27 meta = {
28 description = "Futuristic take on hexdump, made in Rust";
29 homepage = "https://github.com/sitkevij/hex";
30 changelog = "https://github.com/sitkevij/hex/releases/tag/v${version}";
31 mainProgram = "hx";
32 license = lib.licenses.mit;
33 maintainers = with lib.maintainers; [ ];
34 };
35}