1 { lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
3 rustPlatform.buildRustPackage rec {
4 pname = "mdbook-admonish";
7 src = fetchFromGitHub {
11 hash = "sha256-GNQIOjgHCt3XPCzF0RjV9YStI8psLdHhTPuTkdgx8vA=";
14 cargoHash = "sha256-CG4WvAFDqtRUjF4kJ29363F6jWRChIXgT5i6ozwV4pw=";
16 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ CoreServices ];
19 description = "Preprocessor for mdbook to add Material Design admonishments";
20 mainProgram = "mdbook-admonish";
21 license = licenses.mit;
22 maintainers = with maintainers; [ jmgilman Frostman matthiasbeyer ];
23 homepage = "https://github.com/tommilligan/mdbook-admonish";