depot/third_party/nixpkgs/pkgs/tools/text/mdbook-toc/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

25 lines
700 B
Nix

{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
rustPlatform.buildRustPackage rec {
pname = "mdbook-toc";
version = "0.12.0";
src = fetchFromGitHub {
owner = "badboy";
repo = pname;
rev = version;
sha256 = "sha256-3lAi9ZNtwhA2OtIR4tN2wiztp3pnRxtaGG0MwGEk0u0=";
};
cargoHash = "sha256-l3ETQ/ARBZmU1wMCK6F/4g6tlxHsEV9D5LO1wue1Jps=";
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
meta = with lib; {
description = "A preprocessor for mdbook to add inline Table of Contents support";
homepage = "https://github.com/badboy/mdbook-toc";
license = [ licenses.mpl20 ];
maintainers = with maintainers; [ matthiasbeyer ];
};
}