about summary refs log tree commit diff
path: root/pkgs/tools/misc/hexyl
diff options
context:
space:
mode:
authorLily Ballard <lily@sb.org>2019-01-09 18:18:59 -0800
committerLily Ballard <lily@sb.org>2019-01-09 18:22:50 -0800
commit96bffeb8654e6b18fd5ff80c8f23350a160fd4f2 (patch)
tree85eab3787ef38a249ba7c1cd4a6c3640ae3ebe43 /pkgs/tools/misc/hexyl
parent6b817682977cd630026c96d0352bb4afcc6af890 (diff)
hexyl: init at 0.3.0
Diffstat (limited to 'pkgs/tools/misc/hexyl')
-rw-r--r--pkgs/tools/misc/hexyl/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/tools/misc/hexyl/default.nix b/pkgs/tools/misc/hexyl/default.nix
new file mode 100644
index 0000000000000..6787549e053b8
--- /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;
+  };
+}