nixpkgs/pkgs/tools/misc/hex/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
788 B
Nix
Raw Normal View History

2022-09-11 19:14:17 +02:00
{ 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 ];
};
}