diff options
author | Jichao Ouyang <oyanglulu@gmail.com> | 2021-12-10 12:06:30 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-10 02:06:30 +0100 |
commit | e4feefd79644fffc2260295db3b3daec5dac752d (patch) | |
tree | 44dee06bcd48ce37793adff6536b17b4d9d1b57b /pkgs/tools/text/mdbook-plantuml | |
parent | 65e53225e509d152bdcc80f5b1ff16c4768a3ce3 (diff) |
mdbook-plantuml: init at 0.7.0 (#144594)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/tools/text/mdbook-plantuml')
-rw-r--r-- | pkgs/tools/text/mdbook-plantuml/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/tools/text/mdbook-plantuml/default.nix b/pkgs/tools/text/mdbook-plantuml/default.nix new file mode 100644 index 0000000000000..0b26bee09538d --- /dev/null +++ b/pkgs/tools/text/mdbook-plantuml/default.nix @@ -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 ]; + }; +} |