2023-01-04 17:36:52 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
|
2022-06-04 00:11:32 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "mdbook-admonish";
|
2023-09-25 03:40:43 +00:00
|
|
|
version = "1.12.1";
|
2022-06-04 00:11:32 +00:00
|
|
|
|
2022-10-05 16:20:06 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tommilligan";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-09-25 03:40:43 +00:00
|
|
|
hash = "sha256-U9boL+Ki4szDwhdPBvXA5iXYjL9LEMVyez8DX35i5gI=";
|
2022-06-04 00:11:32 +00:00
|
|
|
};
|
|
|
|
|
2023-09-25 03:40:43 +00:00
|
|
|
cargoHash = "sha256-cqzY6z4e3ZAVG5HOxkTKYEcAxXu4OsUjpP6SD/LIX74=";
|
2022-06-04 00:11:32 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A preprocessor for mdbook to add Material Design admonishments";
|
|
|
|
license = licenses.mit;
|
2022-12-08 07:58:04 +00:00
|
|
|
maintainers = with maintainers; [ jmgilman Frostman ];
|
2022-06-04 00:11:32 +00:00
|
|
|
homepage = "https://github.com/tommilligan/mdbook-admonish";
|
|
|
|
};
|
|
|
|
}
|