Hollow Man 355bab5e2e
mdbook-pdf: 0.1.10 -> 0.1.11
Signed-off-by: Hollow Man <hollowman@opensuse.org>
2025-02-20 12:52:34 +02:00

47 lines
1.0 KiB
Nix

{
lib,
fetchCrate,
rustPlatform,
pkg-config,
openssl,
}:
rustPlatform.buildRustPackage rec {
pname = "mdbook-pdf";
version = "0.1.11";
src = fetchCrate {
inherit pname version;
hash = "sha256-1VMVobiRCCUv8aWLxNbaDSvNs1Pt2jlsVPzfrieOudc=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-t3dlmeJNaHySIhJdJmSaeS0mXM7TgAUa/0hcG06lHvo=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
# Stop downloading from the Internet to
# generate the Chrome Devtools Protocol
env.DOCS_RS = true;
# Stop formatting with rustfmt
env.DO_NOT_FORMAT = true;
# No test.
doCheck = false;
meta = {
description = "Backend for mdBook written in Rust for generating PDF";
mainProgram = "mdbook-pdf";
homepage = "https://github.com/HollowMan6/mdbook-pdf";
changelog = "https://github.com/HollowMan6/mdbook-pdf/releases/tag/v${version}";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [
hollowman6
matthiasbeyer
];
};
}