depot/third_party/nixpkgs/pkgs/tools/text/mdbook-admonish/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

25 lines
780 B
Nix

{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
rustPlatform.buildRustPackage rec {
pname = "mdbook-admonish";
version = "1.18.0";
src = fetchFromGitHub {
owner = "tommilligan";
repo = pname;
rev = "v${version}";
hash = "sha256-GNQIOjgHCt3XPCzF0RjV9YStI8psLdHhTPuTkdgx8vA=";
};
cargoHash = "sha256-CG4WvAFDqtRUjF4kJ29363F6jWRChIXgT5i6ozwV4pw=";
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ CoreServices ];
meta = with lib; {
description = "Preprocessor for mdbook to add Material Design admonishments";
mainProgram = "mdbook-admonish";
license = licenses.mit;
maintainers = with maintainers; [ jmgilman Frostman matthiasbeyer ];
homepage = "https://github.com/tommilligan/mdbook-admonish";
};
}