From 35e2c2d6ddf7f76cecfac7ea186638dfe20364e7 Mon Sep 17 00:00:00 2001 From: Lily Ballard Date: Tue, 23 Apr 2019 15:45:59 -0700 Subject: xv: init at 0.1.0 --- pkgs/tools/misc/xv/default.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pkgs/tools/misc/xv/default.nix (limited to 'pkgs/tools') diff --git a/pkgs/tools/misc/xv/default.nix b/pkgs/tools/misc/xv/default.nix new file mode 100644 index 000000000000..2611f5670bb4 --- /dev/null +++ b/pkgs/tools/misc/xv/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchFromGitHub, rustPlatform, ncurses }: + +rustPlatform.buildRustPackage rec { + pname = "xv"; + version = "0.1.0"; + + src = fetchFromGitHub { + owner = "chrisvest"; + repo = pname; + rev = "${version}"; + sha256 = "1cghg3ypxx6afllvwzc6j4z4h7mylapapipqghpdndrfizk7rsxi"; + }; + + cargoSha256 = "0iwx9cxnxlif135s2v2hji8xil38xk5a1h147ryb54v6nabaxvjw"; + + buildInputs = [ ncurses ]; + + meta = with stdenv.lib; { + description = "A visual hex viewer for the terminal"; + longDescription = '' + XV is a terminal hex viewer with a text user interface, written in 100% safe Rust. + ''; + homepage = https://chrisvest.github.io/xv/; + license = with licenses; [ asl20 ]; + maintainers = with maintainers; [ lilyball ]; + platforms = platforms.all; + }; +} -- cgit 1.4.1