2023-03-04 12:14:45 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "mdbook-admonish";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "1.17.1";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tommilligan";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-Jj3mbsH/rFrUTWcgT4+KQJ2Bae58STHBB+7oZwbrhLk=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
cargoHash = "sha256-a2JGpIvI65djxyB1LZFWgIQmhsLPLhiYkyvqKwysgQo=";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Preprocessor for mdbook to add Material Design admonishments";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "mdbook-admonish";
|
2022-06-16 17:23:12 +00:00
|
|
|
license = licenses.mit;
|
2024-04-21 15:54:59 +00:00
|
|
|
maintainers = with maintainers; [ jmgilman Frostman matthiasbeyer ];
|
2022-06-16 17:23:12 +00:00
|
|
|
homepage = "https://github.com/tommilligan/mdbook-admonish";
|
|
|
|
};
|
|
|
|
}
|