forked from mirrors/nixpkgs
Merge pull request #211168 from blaggacao/init-mdbook-pagetoc
init: mdbook-pagetoc at v0.1.5
This commit is contained in:
commit
3068b87f54
22
pkgs/tools/text/mdbook-pagetoc/default.nix
Normal file
22
pkgs/tools/text/mdbook-pagetoc/default.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ lib, rustPlatform, fetchFromGitHub }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "mdbook-pagetoc";
|
||||
version = "0.1.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "slowsage";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-SRrlyUkEdC63NbdAv+J9kb5LTCL/GBwMhnUVdTE4nas=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-Gx6N8VFUnaOvQ290TLeeNj/pVDeK/nUWLjM/KwVAjNo=";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Table of contents for mdbook (in sidebar)";
|
||||
homepage = "https://github.com/slowsage/mdbook-pagetoc";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ blaggacao ];
|
||||
};
|
||||
}
|
|
@ -9032,6 +9032,8 @@ with pkgs;
|
|||
|
||||
mdbook-cmdrun = callPackage ../tools/text/mdbook-cmdrun { };
|
||||
|
||||
mdbook-pagetoc = callPackage ../tools/text/mdbook-pagetoc { };
|
||||
|
||||
mdbook-graphviz = callPackage ../tools/text/mdbook-graphviz {
|
||||
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue