5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
23 lines
643 B
Nix
23 lines
643 B
Nix
{ lib, rustPlatform, fetchFromGitHub }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "mdbook-pagetoc";
|
|
version = "0.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "slowsage";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-A8J3cKSA//NGIVK3uE43YH3ph9DHGFlg7uOo10j2Kh8=";
|
|
};
|
|
|
|
cargoHash = "sha256-FvDvPXA4/dxVOIt1LwesBrWEsjdYcrhHescQVAiggBA=";
|
|
|
|
meta = with lib; {
|
|
description = "Table of contents for mdbook (in sidebar)";
|
|
mainProgram = "mdbook-pagetoc";
|
|
homepage = "https://github.com/slowsage/mdbook-pagetoc";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ blaggacao matthiasbeyer ];
|
|
};
|
|
}
|