nixpkgs/pkgs/by-name/te/templ/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
705 B
Nix
Raw Normal View History

2023-12-21 15:19:50 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "templ";
2024-05-26 19:50:05 +01:00
version = "0.2.707";
2023-12-21 15:19:50 +00:00
2024-04-13 17:46:40 +01:00
src = fetchFromGitHub {
owner = "a-h";
repo = "templ";
rev = "v${version}";
2024-05-26 19:50:05 +01:00
hash = "sha256-4TkK8zeoWWGmcBg8YwALo2EyKfOyq5ut/3TjG81a+8M=";
2024-04-13 17:46:40 +01:00
};
2024-05-20 16:00:10 +01:00
vendorHash = "sha256-Fa6bmG0yfbICMfHlM52V+obxoVsQa4VNydIHXS+lGxw=";
2024-04-13 17:46:40 +01:00
2023-12-21 15:19:50 +00:00
subPackages = [ "cmd/templ" ];
CGO_ENABLED = 0;
ldflags = [
"-s"
"-w"
"-extldflags -static"
];
2024-04-13 17:46:40 +01:00
meta = {
description = "Language for writing HTML user interfaces in Go";
2024-04-13 17:46:40 +01:00
homepage = "https://github.com/a-h/templ";
license = lib.licenses.mit;
2023-12-21 15:19:50 +00:00
mainProgram = "templ";
2024-04-13 17:46:40 +01:00
maintainers = with lib.maintainers; [ luleyleo ];
2023-12-21 15:19:50 +00:00
};
}