diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/misc/hex/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/misc/hex/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/misc/hex/default.nix b/nixpkgs/pkgs/tools/misc/hex/default.nix new file mode 100644 index 000000000000..618fbe1dda60 --- /dev/null +++ b/nixpkgs/pkgs/tools/misc/hex/default.nix @@ -0,0 +1,34 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, testers +, hex +}: + +rustPlatform.buildRustPackage rec { + pname = "hex"; + version = "0.4.2"; + + src = fetchFromGitHub { + owner = "sitkevij"; + repo = "hex"; + rev = "v${version}"; + hash = "sha256-mxKjiciejnOTbSkCzOWdAtysRAnEv4JgntPS1qM9og8="; + }; + + cargoHash = "sha256-kGe6XN03V+ILnlAcT0E8BvrYMa7ub05STFsFY6X5Gkk="; + + passthru.tests.version = testers.testVersion { + package = hex; + version = "hx ${version}"; + }; + + meta = with lib; { + description = "Futuristic take on hexdump, made in Rust"; + homepage = "https://github.com/sitkevij/hex"; + changelog = "https://github.com/sitkevij/hex/releases/tag/v${version}"; + mainProgram = "hx"; + license = licenses.mit; + maintainers = with maintainers; [ ivar ]; + }; +} |