nixpkgs-suyu/pkgs/tools/text/mdbook-pdf/default.nix
Theodore Ni 508d498cbc
mdbook-pdf: 0.1.2 -> 0.1.3
Updates mdbook to work with Rust 1.64.
2022-10-07 08:06:29 -07:00

28 lines
758 B
Nix

{ lib, stdenv, fetchCrate, rustPlatform, pkg-config, openssl, CoreServices }:
rustPlatform.buildRustPackage rec {
pname = "mdbook-pdf";
version = "0.1.3";
src = fetchCrate {
inherit pname version;
sha256 = "sha256-zFeEmIv3DIYKmhVYO9cJwRQbSP8yELaJjVjP7hYegco=";
};
cargoHash = "sha256-pB7NEloeow4TE1Y1EMUZzeCJ/f4DnCS+sQlyN49gqzA=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ]
++ lib.optionals stdenv.isDarwin [ CoreServices ];
# No test.
doCheck = false;
meta = with lib; {
description = "A backend for mdBook written in Rust for generating PDF";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ hollowman6 ];
homepage = "https://github.com/HollowMan6/mdbook-pdf";
};
}