summaryrefslogtreecommitdiff
path: root/pkgs/by-name/gi/github-markdown-toc-go/package.nix
blob: eabfa0b57b1eddb2c5e781c07ee5535e5e031609 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
  lib,
  buildGoModule,
  fetchFromGitHub,
}:
buildGoModule rec {
  pname = "github-markdown-toc-go";
  version = "2.0.0";

  src = fetchFromGitHub {
    owner = "ekalinin";
    repo = "github-markdown-toc.go";
    rev = "v${version}";
    hash = "sha256-hCkahhnTAF17ctJTL83wZxZiKGDzIKLwWKTTnwYQ3cs=";
  };

  vendorHash = "sha256-K5yb7bnW6eS5UESK9wgNEUwGjB63eJk6+B0jFFiFero=";

  meta = {
    homepage = "https://github.com/ekalinin/github-markdown-toc.go";
    description = "Easy TOC creation for GitHub README.md (in go)";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ dannixon ];
    mainProgram = "gh-md-toc";
  };
}