depot/third_party/nixpkgs/pkgs/tools/text/mdbook-pdf/default.nix
Default email 8a45d4525b Project import generated by Copybara.
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
2022-03-30 11:31:56 +02:00

28 lines
762 B
Nix

{ lib, stdenv, fetchCrate, rustPlatform, pkg-config, openssl, CoreServices }:
rustPlatform.buildRustPackage rec {
pname = "mdbook-pdf";
version = "0.1.2";
src = fetchCrate {
inherit pname version;
sha256 = "1ibmn8x9kyfd058hsyah2ggyzpahzf2w2qjn6rs9qv8mr3bvc0pv";
};
cargoSha256 = "0k47a5yqnjjc599vgk39ijy6fm62rr8xarvz37g0c7fx9cljhihz";
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";
};
}