1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00
nixpkgs/pkgs/by-name/md/mdbook-alerts/package.nix
2024-08-27 13:16:48 +00:00

38 lines
879 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
darwin,
CoreServices ? darwin.apple_sdk.frameworks.CoreServices,
}:
let
version = "0.6.4";
in
rustPlatform.buildRustPackage {
pname = "mdbook-alerts";
inherit version;
src = fetchFromGitHub {
owner = "lambdalisue";
repo = "rs-mdbook-alerts";
rev = "v${version}";
hash = "sha256-bg3X7M2H553tGxH8cEkkT0XK20fWwkp2nTVEgtZ819s=";
};
cargoHash = "sha256-MMhpH3WIAXnjw6xOl2HNfrIFEwjHfVDPquWnFhhZCMU=";
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
];
};
}