forked from mirrors/nixpkgs
mdcat: 0.22.2 -> 0.23.0
This commit is contained in:
parent
06607de533
commit
c39f40a66f
|
@ -1,4 +1,5 @@
|
|||
{ lib, stdenv
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, rustPlatform
|
||||
, pkg-config
|
||||
|
@ -11,19 +12,20 @@
|
|||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "mdcat";
|
||||
version = "0.22.2";
|
||||
version = "0.23.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lunaryorn";
|
||||
repo = pname;
|
||||
rev = "mdcat-${version}";
|
||||
hash = "sha256-i36MYTMkbSuWxxlWUDsyYMay/4Mg7M5jEFhHM60UrkM=";
|
||||
hash = "sha256-bGXuYGQyrXa9gUEQfB7BF9K04z88r1UoM8R5gpL2nRM=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config asciidoctor installShellFiles ];
|
||||
buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
|
||||
buildInputs = [ openssl ]
|
||||
++ lib.optional stdenv.isDarwin Security;
|
||||
|
||||
cargoSha256 = "sha256-y9yg4EQDL+RcD6NI7n6W/Hi6Tw4Wr1Kf6hbcIuidIf4=";
|
||||
cargoSha256 = "sha256-hmv4LNk7NEYjT/5XXUpMd+xGS19KHOW+HIgsiFEWeig=";
|
||||
|
||||
checkInputs = [ ansi2html ];
|
||||
# Skip tests that use the network and that include files.
|
||||
|
@ -32,6 +34,7 @@ rustPlatform.buildRustPackage rec {
|
|||
"--skip magic::tests::detect_mimetype_of_magic_param_bytes_max_length"
|
||||
"--skip magic::tests::detect_mimetype_of_png_image"
|
||||
"--skip magic::tests::detect_mimetype_of_svg_image"
|
||||
"--skip resources::tests::read_url_with_http_url_fails_when_size_limit_is_exceeded"
|
||||
"--skip resources::tests::read_url_with_http_url_fails_when_status_404"
|
||||
"--skip resources::tests::read_url_with_http_url_returns_content_when_status_200"
|
||||
"--skip iterm2_tests_render_md_samples_images_md"
|
||||
|
@ -48,6 +51,6 @@ rustPlatform.buildRustPackage rec {
|
|||
description = "cat for markdown";
|
||||
homepage = "https://github.com/lunaryorn/mdcat";
|
||||
license = with licenses; [ asl20 ];
|
||||
maintainers = with maintainers; [ davidtwco ];
|
||||
maintainers = with maintainers; [ davidtwco SuperSandro2000 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue