c7e6337bd0
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
24 lines
717 B
Nix
24 lines
717 B
Nix
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "mdbook-admonish";
|
|
version = "1.9.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tommilligan";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-B0WfOvt037U56G9C7vfAVP4CElodszEUj8h/UD+qv4I=";
|
|
};
|
|
|
|
cargoHash = "sha256-EmNy7YjltUgPgAp/L/VjCVG2pu//o7Bq7v+B3vO5ipM=";
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
|
|
|
meta = with lib; {
|
|
description = "A preprocessor for mdbook to add Material Design admonishments";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ jmgilman Frostman ];
|
|
homepage = "https://github.com/tommilligan/mdbook-admonish";
|
|
};
|
|
}
|