depot/third_party/nixpkgs/pkgs/tools/text/mdbook-admonish/default.nix
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

24 lines
718 B
Nix

{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
rustPlatform.buildRustPackage rec {
pname = "mdbook-admonish";
version = "1.10.1";
src = fetchFromGitHub {
owner = "tommilligan";
repo = pname;
rev = "v${version}";
hash = "sha256-ENtnypxOQiKBG1j/kpSJSqm7Re0KUkp9el40EavsNsA=";
};
cargoHash = "sha256-7FRY7Hca3E7tMyDHe8vKPtll8TH9UMTZoaLGkKhzJRs=";
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";
};
}