From 43bc4e675498cf6aa71dc30778abf792d48d9b92 Mon Sep 17 00:00:00 2001 From: Anton Tetov Date: Mon, 8 Dec 2025 21:40:07 +0100 Subject: [PATCH] gotmplfmt: init at 1.0.22 --- pkgs/by-name/go/gotmplfmt/package.nix | 35 +++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pkgs/by-name/go/gotmplfmt/package.nix diff --git a/pkgs/by-name/go/gotmplfmt/package.nix b/pkgs/by-name/go/gotmplfmt/package.nix new file mode 100644 index 000000000000..60d7b95c7286 --- /dev/null +++ b/pkgs/by-name/go/gotmplfmt/package.nix @@ -0,0 +1,35 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, + installShellFiles, + nix-update-script, +}: +buildGoModule (finalAttrs: { + pname = "gotmplfmt"; + version = "1.0.22"; + + src = fetchFromGitHub { + owner = "miekg"; + repo = "gotmplfmt"; + tag = "v${finalAttrs.version}"; + hash = "sha256-87TcSEV4tJXf7a9Sml5H7mdVGYd4z7yJRxdkZFYm5DQ="; + }; + + vendorHash = "sha256-uPqabZgQGQulf+F3BvMLhv4O0h5jOq12F7K60u5xjtA="; + + nativeBuildInputs = [ installShellFiles ]; + + postInstall = '' + installManPage gotmplfmt.1 + ''; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Fmt Go HTML templates"; + homepage = "https://github.com/miekg/gotmplfmt"; + license = lib.licenses.gpl3Plus; + maintainers = with lib.maintainers; [ tetov ]; + }; +})