3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #176166 from jmgilman/mdbook-admonition

mdbook-admonish: init at 1.6.0
This commit is contained in:
Sandro 2022-06-09 23:22:44 +02:00 committed by GitHub
commit 327784722d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 0 deletions

View file

@ -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";
};
}

View file

@ -7749,6 +7749,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;