From 23be58ef4c77cf4ff567de3fcd0361930610630f Mon Sep 17 00:00:00 2001 From: Joshua Gilman Date: Fri, 3 Jun 2022 17:11:32 -0700 Subject: [PATCH] mdbook-admonish: init at 1.6.0 fix: removes trailing period in package description mdbook-admonish: init at 1.6.0 --- pkgs/tools/text/mdbook-admonish/default.nix | 22 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/tools/text/mdbook-admonish/default.nix diff --git a/pkgs/tools/text/mdbook-admonish/default.nix b/pkgs/tools/text/mdbook-admonish/default.nix new file mode 100644 index 000000000000..c72f7454b2bf --- /dev/null +++ b/pkgs/tools/text/mdbook-admonish/default.nix @@ -0,0 +1,22 @@ +{ lib, stdenv, fetchCrate, rustPlatform, CoreServices }: + +rustPlatform.buildRustPackage rec { + pname = "mdbook-admonish"; + version = "1.6.0"; + + src = fetchCrate { + inherit pname version; + sha256 = "sha256-GH4T7arBabm+DXIJa3seP6L13DBleoNqYwzxhoCZJgI="; + }; + + cargoSha256 = "sha256-v0usxkGWs/qzUPU6ZwtTpUD7hXdSBZGYQifMZnr7sfI="; + + buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ]; + + meta = with lib; { + description = "A preprocessor for mdbook to add Material Design admonishments"; + license = licenses.mit; + maintainers = with maintainers; [ jmgilman ]; + homepage = "https://github.com/tommilligan/mdbook-admonish"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d4017a751e04..868775e5a194 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7733,6 +7733,10 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) CoreServices; }; + mdbook-admonish = callPackage ../tools/text/mdbook-admonish { + inherit (darwin.apple_sdk.frameworks) CoreServices; + }; + mdcat = callPackage ../tools/text/mdcat { inherit (darwin.apple_sdk.frameworks) Security; inherit (python3Packages) ansi2html;