diff options
author | David Wood <david@davidtw.co> | 2019-10-05 13:00:14 +0100 |
---|---|---|
committer | David Wood <david@davidtw.co> | 2019-10-05 13:00:14 +0100 |
commit | 7500c71e7b2ae63933de7292870e88d1465db496 (patch) | |
tree | d3832578f99266fe8109ac79b60c0cb53e2f7478 /pkgs/tools/text/mdcat | |
parent | e621bf7972b034f6a59394d88e124c6d218884d0 (diff) |
mdcat: init at 0.13.0
Diffstat (limited to 'pkgs/tools/text/mdcat')
-rw-r--r-- | pkgs/tools/text/mdcat/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/tools/text/mdcat/default.nix b/pkgs/tools/text/mdcat/default.nix new file mode 100644 index 000000000000..9ebc9840b077 --- /dev/null +++ b/pkgs/tools/text/mdcat/default.nix @@ -0,0 +1,32 @@ +{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl, Security, ansi2html }: + +rustPlatform.buildRustPackage rec { + pname = "mdcat"; + version = "0.13.0"; + + src = fetchFromGitHub { + owner = "lunaryorn"; + repo = pname; + rev = "mdcat-${version}"; + sha256 = "0xlcpyfmil7sszv4008v4ipqswz49as4nzac0kzmzsb86np191q0"; + }; + + nativeBuildInputs = [ pkgconfig ]; + buildInputs = [ (stdenv.lib.optional stdenv.isDarwin Security) openssl ]; + + cargoSha256 = "16q17gm59lpjqa18q289cjmjlf2jicag12jz529x5kh11x6bjl8v"; + + checkInputs = [ ansi2html ]; + checkPhase = '' + # Skip tests that use the network. + cargo test -- --skip terminal::iterm2 + ''; + + meta = with stdenv.lib; { + description = "cat for markdown"; + homepage = https://github.com/lunaryorn/mdcat; + license = with licenses; [ asl20 ]; + maintainers = with maintainers; [ davidtwco ]; + platforms = platforms.all; + }; +} |