mdbook-plantuml: init at 0.7.0 (#144594)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
65e53225e5
commit
e4feefd796
2 changed files with 32 additions and 0 deletions
28
pkgs/tools/text/mdbook-plantuml/default.nix
Normal file
28
pkgs/tools/text/mdbook-plantuml/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ lib, fetchFromGitHub, stdenv, rustPlatform, darwin, pkg-config, openssl
|
||||
, libiconv, CoreServices }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "mdbook-plantuml";
|
||||
version = "0.7.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sytsereitsma";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1m53sp3k387injn6mwk2c6rkzw16b12m4j7q0p69fdb3fiqbkign";
|
||||
};
|
||||
|
||||
cargoSha256 = "0xi14k86ym3rfz6901lmj444y814m7vp90bwsyjmcph3hdv6mjp0";
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [ openssl ]
|
||||
++ lib.optionals stdenv.isDarwin [ CoreServices ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "mdBook preprocessor to render PlantUML diagrams to png images in the book output directory";
|
||||
homepage = "https://github.com/sytsereitsma/mdbook-plantuml";
|
||||
license = [ licenses.mit ];
|
||||
maintainers = with maintainers; [ jcouyang ];
|
||||
};
|
||||
}
|
|
@ -7096,6 +7096,10 @@ with pkgs;
|
|||
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
||||
};
|
||||
|
||||
mdbook-plantuml = callPackage ../tools/text/mdbook-plantuml {
|
||||
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
||||
};
|
||||
|
||||
mdcat = callPackage ../tools/text/mdcat {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
inherit (python3Packages) ansi2html;
|
||||
|
|
Loading…
Reference in a new issue