gotmplfmt: init at 1.0.22 (#469099)

This commit is contained in:
Sandro
2026-03-04 02:15:28 +00:00
committed by GitHub
+35
View File
@@ -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 ];
};
})