f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
36 lines
705 B
Nix
36 lines
705 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "templ";
|
|
version = "0.2.747";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "a-h";
|
|
repo = "templ";
|
|
rev = "v${version}";
|
|
hash = "sha256-XFktmKFVN1/1Y57ZoUTVKDgEk38491N92orgejFLnMA=";
|
|
};
|
|
|
|
vendorHash = "sha256-p2xuyy11N1nGjz5OhLIy04Kgzz90k3s0+09qi6hbjEc=";
|
|
|
|
subPackages = [ "cmd/templ" ];
|
|
|
|
CGO_ENABLED = 0;
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-extldflags -static"
|
|
];
|
|
|
|
meta = {
|
|
description = "Language for writing HTML user interfaces in Go";
|
|
homepage = "https://github.com/a-h/templ";
|
|
license = lib.licenses.mit;
|
|
mainProgram = "templ";
|
|
maintainers = with lib.maintainers; [ luleyleo ];
|
|
};
|
|
}
|