Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
66 lines
1.5 KiB
Nix
66 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
callPackage,
|
|
fetchFromGitHub,
|
|
stdenv,
|
|
makeWrapper,
|
|
pandoc,
|
|
rustPlatform,
|
|
texliveSmall,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "mdbook-pandoc";
|
|
version = "0.10.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "max-heller";
|
|
repo = "mdbook-pandoc";
|
|
tag = "v${version}";
|
|
hash = "sha256-ihKju9XXJy4JciuMLw4EcKhqSQjrBiUJDG0Rd5DbFdk=";
|
|
};
|
|
|
|
cargoHash = "sha256-SXXzGOBvfyLYhed5EMFUCzkFWoGEMM73PD3uWjkUcic=";
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
nativeCheckInputs = [
|
|
pandoc
|
|
# some tests require pdflatex
|
|
texliveSmall
|
|
];
|
|
|
|
checkFlags =
|
|
let
|
|
skippedTests = [
|
|
# 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;
|
|
|
|
passthru = {
|
|
wrapper = callPackage ./wrapper.nix { };
|
|
};
|
|
|
|
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/${src.tag}";
|
|
license = with lib.licenses; [
|
|
asl20
|
|
# or
|
|
mit
|
|
];
|
|
maintainers = with lib.maintainers; [
|
|
astro
|
|
];
|
|
};
|
|
}
|