nixpkgs/pkgs/tools/text/mdbook-pagetoc/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
593 B
Nix
Raw Normal View History

2023-01-17 04:28:40 +03:00
{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "mdbook-pagetoc";
2023-03-13 19:17:42 +03:00
version = "0.1.7";
2023-01-17 04:28:40 +03:00
src = fetchFromGitHub {
owner = "slowsage";
repo = pname;
rev = "v${version}";
2023-03-13 19:17:42 +03:00
hash = "sha256-rhg/QDdO44Qwb/z1tQEYK5DcGuUI6cQvpHTYmqYyoWY=";
2023-01-17 04:28:40 +03:00
};
2023-03-13 19:17:42 +03:00
cargoHash = "sha256-03/bLFbP+BSfRW6wyg7LnryDP0kqvfvYqrFBKFZ2xY8=";
2023-01-17 04:28:40 +03:00
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 ];
};
}