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

31 lines
1.0 KiB
Nix
Raw Normal View History

2019-01-10 02:18:59 +00:00
{ stdenv, fetchFromGitHub, rustPlatform }:
rustPlatform.buildRustPackage rec {
2019-04-13 18:54:51 +01:00
pname = "hexyl";
2020-03-09 21:10:24 +00:00
version = "0.7.0";
2019-01-10 02:18:59 +00:00
src = fetchFromGitHub {
owner = "sharkdp";
2019-04-13 18:54:51 +01:00
repo = pname;
2019-01-10 02:18:59 +00:00
rev = "v${version}";
2020-03-09 21:10:24 +00:00
sha256 = "0blq81zpmzldngk9ymcg56syspjp1g1ziap4z69idv05mfkf6sp3";
2019-01-10 02:18:59 +00:00
};
2020-03-09 21:10:24 +00:00
cargoSha256 = "09kccd1brcbvzimm05dyybwrkganqxdkjrvzgcf1l93xs1z2h94b";
2019-01-10 02:18:59 +00:00
meta = with stdenv.lib; {
2020-03-09 21:10:24 +00:00
changelog = "https://github.com/sharkdp/hexyl/releases/tag/v${version}";
2019-01-10 02:18:59 +00:00
description = "A command-line hex viewer";
longDescription = ''
`hexyl` is a simple hex viewer for the terminal. It uses a colored
output to distinguish different categories of bytes (NULL bytes,
printable ASCII characters, ASCII whitespace characters, other ASCII
characters and non-ASCII).
'';
2020-03-09 21:10:24 +00:00
homepage = "https://github.com/sharkdp/hexyl";
2019-01-10 02:18:59 +00:00
license = with licenses; [ asl20 /* or */ mit ];
2019-01-10 18:53:17 +00:00
maintainers = with maintainers; [ dywedir ];
2019-01-10 02:18:59 +00:00
platforms = platforms.linux ++ platforms.darwin;
};
}