587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
36 lines
707 B
Nix
36 lines
707 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "templ";
|
|
version = "0.2.663";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "a-h";
|
|
repo = "templ";
|
|
rev = "v${version}";
|
|
hash = "sha256-TU8QG6OmUzSNDAX9W0Ntmz5cucLqVQeTskfnJbm/YM0=";
|
|
};
|
|
|
|
vendorHash = "sha256-Upd5Wq4ajsyOMDiAWS2g2iNO1sm1XJc43AFQLIo5eDM=";
|
|
|
|
subPackages = [ "cmd/templ" ];
|
|
|
|
CGO_ENABLED = 0;
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-extldflags -static"
|
|
];
|
|
|
|
meta = {
|
|
description = "A 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 ];
|
|
};
|
|
}
|