1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6buildGoModule rec {
7 pname = "github-markdown-toc-go";
8 version = "2.0.0";
9
10 src = fetchFromGitHub {
11 owner = "ekalinin";
12 repo = "github-markdown-toc.go";
13 rev = "v${version}";
14 hash = "sha256-hCkahhnTAF17ctJTL83wZxZiKGDzIKLwWKTTnwYQ3cs=";
15 };
16
17 vendorHash = "sha256-K5yb7bnW6eS5UESK9wgNEUwGjB63eJk6+B0jFFiFero=";
18
19 meta = {
20 homepage = "https://github.com/ekalinin/github-markdown-toc.go";
21 description = "Easy TOC creation for GitHub README.md (in go)";
22 license = lib.licenses.mit;
23 maintainers = with lib.maintainers; [ dannixon ];
24 mainProgram = "gh-md-toc";
25 };
26}