2022-10-01 10:00:42 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "mdbook-toc";
|
2023-08-12 22:10:55 +02:00
|
|
|
version = "0.14.1";
|
2022-10-01 10:00:42 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "badboy";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-08-12 22:10:55 +02:00
|
|
|
sha256 = "sha256-F0dIqtDEOVUXlWhmXKPOaJTEuA3Tl3h0vaEu7VsBo7s=";
|
2022-10-01 10:00:42 +02:00
|
|
|
};
|
|
|
|
|
2023-08-12 22:10:55 +02:00
|
|
|
cargoHash = "sha256-gbBX6Hj+271BA9FWmkZdyR0tMP2Lny7UgW0o+kZe9bU=";
|
2022-10-01 10:00:42 +02:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|