nixpkgs/pkgs/by-name/md/mdbook-pagetoc/package.nix

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

24 lines
643 B
Nix
Raw Normal View History

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)";
mainProgram = "mdbook-pagetoc";
2023-01-17 01:28:40 +00:00
homepage = "https://github.com/slowsage/mdbook-pagetoc";
license = licenses.mit;
maintainers = with maintainers; [ blaggacao matthiasbeyer ];
2023-01-17 01:28:40 +00:00
};
}