Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
25 lines
780 B
Nix
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";
|
|
};
|
|
}
|