2024-07-27 06:49:29 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
rustPlatform,
|
|
|
|
darwin,
|
|
|
|
CoreServices ? darwin.apple_sdk.frameworks.CoreServices,
|
|
|
|
}:
|
|
|
|
let
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.6.5";
|
2024-07-27 06:49:29 +00:00
|
|
|
in
|
|
|
|
rustPlatform.buildRustPackage {
|
|
|
|
pname = "mdbook-alerts";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lambdalisue";
|
|
|
|
repo = "rs-mdbook-alerts";
|
|
|
|
rev = "v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-vlp1tjtdbaH1sax3HAN665fspqRheHZzu5u/QjEejHg=";
|
2024-07-27 06:49:29 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
cargoHash = "sha256-nzVvktweqrow7P/I8DhDoVJNj1COCeEhx6HLY536hYE=";
|
2024-07-27 06:49:29 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Preprocessor for mdbook to support the inclusion of Markdown alerts";
|
|
|
|
mainProgram = "mdbook-alerts";
|
|
|
|
homepage = "https://github.com/lambdalisue/rs-mdbook-alerts";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
brianmcgillion
|
|
|
|
matthiasbeyer
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|