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.

24 lines
629 B
Nix
Raw Normal View History

2023-01-17 02:28:40 +01:00
{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "mdbook-pagetoc";
2024-01-24 10:53:54 +01:00
version = "0.1.9";
2023-01-17 02:28:40 +01:00
src = fetchFromGitHub {
owner = "slowsage";
repo = pname;
rev = "v${version}";
2024-01-24 10:53:54 +01:00
hash = "sha256-g7UaQZzIdpv4hZgEtoJ6fyPgA9yQPw3LiATwngjHnWE=";
2023-01-17 02:28:40 +01:00
};
2024-01-24 10:53:54 +01:00
cargoHash = "sha256-qSsZaXneGW6zspgy8wHFZvRyTexy6VdySleZv0ieBsI=";
2023-01-17 02:28:40 +01:00
meta = with lib; {
description = "Table of contents for mdbook (in sidebar)";
mainProgram = "mdbook-pagetoc";
2023-01-17 02:28:40 +01:00
homepage = "https://github.com/slowsage/mdbook-pagetoc";
license = licenses.mit;
maintainers = with maintainers; [ blaggacao ];
};
}