@@ -0,0 +1,28 @@
1+{ stdenv, fetchFromGitHub, rustPlatform, ncurses }:
2+
3+rustPlatform.buildRustPackage rec {
4+ pname = "xv";
5+ version = "0.1.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "chrisvest";
9+ repo = pname;
10+ rev = "${version}";
11+ sha256 = "1cghg3ypxx6afllvwzc6j4z4h7mylapapipqghpdndrfizk7rsxi";
12+ };
13+
14+ cargoSha256 = "0iwx9cxnxlif135s2v2hji8xil38xk5a1h147ryb54v6nabaxvjw";
15+
16+ buildInputs = [ ncurses ];
17+
18+ meta = with stdenv.lib; {
19+ description = "A visual hex viewer for the terminal";
20+ longDescription = ''
21+ XV is a terminal hex viewer with a text user interface, written in 100% safe Rust.
22+ '';
23+ homepage = https://chrisvest.github.io/xv/;
24+ license = with licenses; [ asl20 ];
25+ maintainers = with maintainers; [ lilyball ];
26+ platforms = platforms.all;
27+ };
28+}