Commit 44c73a56 authored by Astro's avatar Astro
Browse files

mdbook-pandoc: 0.6.4 -> 0.10.5

parent 26f34d7f
Loading
Loading
Loading
Loading
+45 −50
Original line number Diff line number Diff line
@@ -2,25 +2,25 @@
  lib,
  callPackage,
  fetchFromGitHub,
  stdenv,
  makeWrapper,
  pandoc,
  rustPlatform,
  texliveSmall,
}:

let
  self = rustPlatform.buildRustPackage {
rustPlatform.buildRustPackage rec {
  pname = "mdbook-pandoc";
    version = "0.6.4";
  version = "0.10.5";

  src = fetchFromGitHub {
    owner = "max-heller";
    repo = "mdbook-pandoc";
      rev= "v${self.version}";
      hash = "sha256-WaRcNfVfex9ujZ1fD8NhQ72phUh4WgyZtI3zuZ63Koc=";
    tag = "v${version}";
    hash = "sha256-ihKju9XXJy4JciuMLw4EcKhqSQjrBiUJDG0Rd5DbFdk=";
  };

    cargoHash = "sha256-XT/YkR8kRJ30bCXmfxKQJQL7tPl+eAPr4jIhmStJ8TM=";
  cargoHash = "sha256-SXXzGOBvfyLYhed5EMFUCzkFWoGEMM73PD3uWjkUcic=";

  nativeBuildInputs = [ makeWrapper ];

@@ -30,23 +30,18 @@ let
    texliveSmall
  ];

    checkFlags = let
  checkFlags =
    let
      skippedTests = [
      # require network access
      "remote_images"
      "cargo_book"
      "mdbook_guide"
      "nomicon"
      "rust_book"
      "rust_by_example"
      "rust_edition_guide"
      "rust_embedded"
      "rust_reference"
      "rustc_dev_guide"
      # failed because pandoc
      "code_block_with_very_long_line"
      "code_block_with_very_long_line_with_special_characters"
      ];
        # failing subtly
        "tests::html::rust_reference_regression_nested_elements"
        "tests::css::css"
        "tests::definition_lists::dt_attributes"
        "tests::html::attach_id_to_div_of_stripped_html_elements"
        "tests::html::link_to_element_by_id"
        "tests::images::images"
      ]
      ++ lib.optional stdenv.buildPlatform.isDarwin "pandoc::tests::five_item_deep_list";
    in
    builtins.map (x: "--skip " + x) skippedTests;

@@ -57,14 +52,14 @@ let
  meta = {
    homepage = "https://github.com/max-heller/mdbook-pandoc";
    description = "A mdbook backend powered by Pandoc";
      changelog = "https://github.com/max-heller/mdbook-pandoc/releases/tag/${self.src.rev}";
    changelog = "https://github.com/max-heller/mdbook-pandoc/releases/tag/${src.tag}";
    license = with lib.licenses; [
      asl20
        /* or */
      # or
      mit
    ];
      maintainers = with lib.maintainers; [ AndersonTorres ];
    };
    maintainers = with lib.maintainers; [
      astro
    ];
  };
in
self
}