38 lines
714 B
Nix
38 lines
714 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "templ";
|
|
version = "0.3.937";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "a-h";
|
|
repo = "templ";
|
|
rev = "v${version}";
|
|
hash = "sha256-S3mXVlPnL79BL9twuZpPG6c+TWEC68LZE9cvnGWTLwk=";
|
|
};
|
|
|
|
vendorHash = "sha256-pVZjZCXT/xhBCMyZdR7kEmB9jqhTwRISFp63bQf6w5A=";
|
|
|
|
subPackages = [ "cmd/templ" ];
|
|
|
|
env.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 ];
|
|
};
|
|
}
|