Files
nixpkgs/pkgs/by-name/md/mdbook-pdf/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

46 lines
1004 B
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=";
};
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
];
};
}