2021-01-25 09:26:54 +01:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform }:
|
2019-01-10 03:18:59 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-04-13 19:54:51 +02:00
|
|
|
pname = "hexyl";
|
2020-06-14 19:17:28 +02:00
|
|
|
version = "0.8.0";
|
2019-01-10 03:18:59 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sharkdp";
|
2019-04-13 19:54:51 +02:00
|
|
|
repo = pname;
|
2019-01-10 03:18:59 +01:00
|
|
|
rev = "v${version}";
|
2020-06-14 19:17:28 +02:00
|
|
|
sha256 = "0aj2sysl0spf5zlcd5kfzlw97w7dzf9x93pv0d1v9blnbd1rz7lm";
|
2019-01-10 03:18:59 +01:00
|
|
|
};
|
|
|
|
|
2021-05-07 13:00:49 +02:00
|
|
|
cargoSha256 = "08hn0csw12xaag95gb5rj4q7k2zyy9j9bf4iw3b0r3ndh66qqra2";
|
2019-01-10 03:18:59 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-03-09 22:10:24 +01:00
|
|
|
changelog = "https://github.com/sharkdp/hexyl/releases/tag/v${version}";
|
2019-01-10 03:18:59 +01: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 22:10:24 +01:00
|
|
|
homepage = "https://github.com/sharkdp/hexyl";
|
2019-01-10 03:18:59 +01:00
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
2019-01-10 19:53:17 +01:00
|
|
|
maintainers = with maintainers; [ dywedir ];
|
2019-01-10 03:18:59 +01:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|