about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/text/mdbook-admonish/default.nix
blob: c72f7454b2bf1a4f288e1b5ce561b0b158f3753e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ lib, stdenv, fetchCrate, rustPlatform, CoreServices }:

rustPlatform.buildRustPackage rec {
  pname = "mdbook-admonish";
  version = "1.6.0";

  src = fetchCrate {
    inherit pname version;
    sha256 = "sha256-GH4T7arBabm+DXIJa3seP6L13DBleoNqYwzxhoCZJgI=";
  };

  cargoSha256 = "sha256-v0usxkGWs/qzUPU6ZwtTpUD7hXdSBZGYQifMZnr7sfI=";

  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 ];
    homepage = "https://github.com/tommilligan/mdbook-admonish";
  };
}