diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/text/mdbook-pagetoc')
-rw-r--r-- | nixpkgs/pkgs/tools/text/mdbook-pagetoc/default.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/text/mdbook-pagetoc/default.nix b/nixpkgs/pkgs/tools/text/mdbook-pagetoc/default.nix new file mode 100644 index 000000000000..77b3b754b1af --- /dev/null +++ b/nixpkgs/pkgs/tools/text/mdbook-pagetoc/default.nix @@ -0,0 +1,23 @@ +{ 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 ]; + }; +} |