mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
mdbook-pdf: init at 0.1.2
Signed-off-by: Hollow Man <hollowman@opensuse.org>
This commit is contained in:
parent
6bbf2eda49
commit
bc0f24d02a
28
pkgs/tools/text/mdbook-pdf/default.nix
Normal file
28
pkgs/tools/text/mdbook-pdf/default.nix
Normal file
@ -0,0 +1,28 @@
|
||||
{ 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";
|
||||
};
|
||||
}
|
@ -7373,6 +7373,10 @@ with pkgs;
|
||||
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
||||
};
|
||||
|
||||
mdbook-pdf = callPackage ../tools/text/mdbook-pdf {
|
||||
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
||||
};
|
||||
|
||||
mdbook-plantuml = callPackage ../tools/text/mdbook-plantuml {
|
||||
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user