From 96bffeb8654e6b18fd5ff80c8f23350a160fd4f2 Mon Sep 17 00:00:00 2001 From: Lily Ballard Date: Wed, 9 Jan 2019 18:18:59 -0800 Subject: [PATCH] hexyl: init at 0.3.0 --- pkgs/tools/misc/hexyl/default.nix | 29 +++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/tools/misc/hexyl/default.nix diff --git a/pkgs/tools/misc/hexyl/default.nix b/pkgs/tools/misc/hexyl/default.nix new file mode 100644 index 000000000000..6787549e053b --- /dev/null +++ b/pkgs/tools/misc/hexyl/default.nix @@ -0,0 +1,29 @@ +{ stdenv, fetchFromGitHub, rustPlatform }: + +rustPlatform.buildRustPackage rec { + name = "hexyl-${version}"; + version = "0.3.0"; + + src = fetchFromGitHub { + owner = "sharkdp"; + repo = "hexyl"; + rev = "v${version}"; + sha256 = "138w6czi62dpw6gcd3yqpk7lns7m89kwbgm1d1i5lnzsqck3wb4s"; + }; + + cargoSha256 = "01m8n7yl3yqr8kj0dl1wfaz724da17hs3sb1fbncv64l6qpvdka1"; + + meta = with stdenv.lib; { + 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). + ''; + homepage = https://github.com/sharkdp/hexyl; + license = with licenses; [ asl20 /* or */ mit ]; + maintainers = []; + platforms = platforms.linux ++ platforms.darwin; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 20d682fcedba..ffe4dda6b7fc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1498,6 +1498,8 @@ in hexio = callPackage ../development/tools/hexio { }; + hexyl = callPackage ../tools/misc/hexyl { }; + hid-listen = callPackage ../tools/misc/hid-listen { }; home-manager = callPackage ../tools/package-management/home-manager {};