2024-01-02 11:29:13 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "templ";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.2.747";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "a-h";
|
|
|
|
repo = "templ";
|
|
|
|
rev = "v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-XFktmKFVN1/1Y57ZoUTVKDgEk38491N92orgejFLnMA=";
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
vendorHash = "sha256-p2xuyy11N1nGjz5OhLIy04Kgzz90k3s0+09qi6hbjEc=";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/templ" ];
|
|
|
|
|
|
|
|
CGO_ENABLED = 0;
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-extldflags -static"
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Language for writing HTML user interfaces in Go";
|
2024-04-21 15:54:59 +00:00
|
|
|
homepage = "https://github.com/a-h/templ";
|
|
|
|
license = lib.licenses.mit;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "templ";
|
2024-04-21 15:54:59 +00:00
|
|
|
maintainers = with lib.maintainers; [ luleyleo ];
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
}
|