mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
34 lines
832 B
Nix
34 lines
832 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, CoreServices
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "mdbook-mermaid";
|
|
version = "0.13.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "badboy";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-Qyt5N6Fito++5lpjDXlzupmguue9kc409IpaDkIRgxw=";
|
|
};
|
|
|
|
cargoHash = "sha256-ji38ZNOZ+SDL7+9dvaRIA38EsqMqYWpSmZntexJqcMU=";
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
CoreServices
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A preprocessor for mdbook to add mermaid.js support";
|
|
mainProgram = "mdbook-mermaid";
|
|
homepage = "https://github.com/badboy/mdbook-mermaid";
|
|
changelog = "https://github.com/badboy/mdbook-mermaid/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mpl20;
|
|
maintainers = with maintainers; [ xrelkd ];
|
|
};
|
|
}
|