hex: init at 0.4.2

Fixes #190768
This commit is contained in:
Ivar Scholten 2022-09-11 19:14:17 +02:00
parent 2eafac6d06
commit cb62326e36
No known key found for this signature in database
GPG Key ID: E22887AD87C33E3C
2 changed files with 36 additions and 0 deletions

View File

@ -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 ];
};
}

View File

@ -7445,6 +7445,8 @@ with pkgs;
hevea = callPackage ../tools/typesetting/hevea { };
hex = callPackage ../tools/misc/hex { };
hexd = callPackage ../tools/misc/hexd { };
pixd = callPackage ../tools/misc/pixd { };