mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 04:04:06 +01:00
gotmplfmt: init at 1.0.22
This commit is contained in:
parent
56bd6043a4
commit
43bc4e6754
1 changed files with 35 additions and 0 deletions
35
pkgs/by-name/go/gotmplfmt/package.nix
Normal file
35
pkgs/by-name/go/gotmplfmt/package.nix
Normal 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 ];
|
||||
};
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue