2023-01-17 01:28:40 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "mdbook-pagetoc";
|
2024-05-01 02:10:46 +00:00
|
|
|
version = "0.2.0";
|
2023-01-17 01:28:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "slowsage";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-05-01 02:10:46 +00:00
|
|
|
hash = "sha256-A8J3cKSA//NGIVK3uE43YH3ph9DHGFlg7uOo10j2Kh8=";
|
2023-01-17 01:28:40 +00:00
|
|
|
};
|
|
|
|
|
2024-05-01 02:10:46 +00:00
|
|
|
cargoHash = "sha256-FvDvPXA4/dxVOIt1LwesBrWEsjdYcrhHescQVAiggBA=";
|
2023-01-17 01:28:40 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Table of contents for mdbook (in sidebar)";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "mdbook-pagetoc";
|
2023-01-17 01:28:40 +00:00
|
|
|
homepage = "https://github.com/slowsage/mdbook-pagetoc";
|
|
|
|
license = licenses.mit;
|
2024-04-17 18:58:31 +00:00
|
|
|
maintainers = with maintainers; [ blaggacao matthiasbeyer ];
|
2023-01-17 01:28:40 +00:00
|
|
|
};
|
|
|
|
}
|