5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
24 lines
718 B
Nix
24 lines
718 B
Nix
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "mdbook-admonish";
|
|
version = "1.12.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tommilligan";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-U9boL+Ki4szDwhdPBvXA5iXYjL9LEMVyez8DX35i5gI=";
|
|
};
|
|
|
|
cargoHash = "sha256-cqzY6z4e3ZAVG5HOxkTKYEcAxXu4OsUjpP6SD/LIX74=";
|
|
|
|
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 Frostman ];
|
|
homepage = "https://github.com/tommilligan/mdbook-admonish";
|
|
};
|
|
}
|