From 2c72efd1311450c62723bfd8639e67a06a004c73 Mon Sep 17 00:00:00 2001 From: Dan Nixon Date: Thu, 14 Mar 2024 21:37:55 +0000 Subject: [PATCH] github-markdown-toc-go: init at 1.4.0 --- .../gi/github-markdown-toc-go/package.nix | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pkgs/by-name/gi/github-markdown-toc-go/package.nix diff --git a/pkgs/by-name/gi/github-markdown-toc-go/package.nix b/pkgs/by-name/gi/github-markdown-toc-go/package.nix new file mode 100644 index 0000000000000..809664c90d1db --- /dev/null +++ b/pkgs/by-name/gi/github-markdown-toc-go/package.nix @@ -0,0 +1,25 @@ +{ lib +, buildGoModule +, fetchFromGitHub +}: +buildGoModule rec { + pname = "github-markdown-toc-go"; + version = "1.4.0"; + + src = fetchFromGitHub { + owner = "ekalinin"; + repo = "github-markdown-toc.go"; + rev = "v${version}"; + hash = "sha256-tZGAvbC9lrNhtRubCJUkQShRsfCsaAeI6XHhSp4FkS0="; + }; + + 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"; + }; +}