10 rustPlatform.buildRustPackage rec {
15 inherit pname version;
16 hash = "sha256-zRoO84ij7zF1I8ijXS/oApMKfS3e04+5/CgahAemqCA=";
19 cargoHash = "sha256-eay3tl4edeM05D+0iIu8Zw4L1N2Bk1csLo0AwNdyCdA=";
27 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
31 # Stop downloading from the Internet to
32 # generate the Chrome Devtools Protocol
35 # Stop formatting with rustfmt
36 env.DO_NOT_FORMAT = true;
42 description = "Backend for mdBook written in Rust for generating PDF";
43 mainProgram = "mdbook-pdf";
44 homepage = "https://github.com/HollowMan6/mdbook-pdf";
45 changelog = "https://github.com/HollowMan6/mdbook-pdf/releases/tag/v${version}";
46 license = licenses.gpl3Plus;
47 maintainers = with maintainers; [ hollowman6 matthiasbeyer ];