Unverified Commit 43bc4e67 authored by Anton Tetov's avatar Anton Tetov
Browse files

gotmplfmt: init at 1.0.22

parent 56bd6043
Loading
Loading
Loading
Loading
+35 −0
Original line number Diff line number Diff line
{
  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 ];
  };
})