60f07311b9
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
36 lines
711 B
Nix
36 lines
711 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "templ";
|
|
version = "0.2.543";
|
|
|
|
subPackages = [ "cmd/templ" ];
|
|
|
|
CGO_ENABLED = 0;
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-extldflags -static"
|
|
];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "a-h";
|
|
repo = "templ";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-A99GBzxmrAhjPzo5qj6V3YWkQJavs9j9beMtNYqGnqo=";
|
|
};
|
|
|
|
vendorHash = "sha256-4tHofTnSNI/MBmrGdGsLNoXjxUC0+Gwp3PzzUwfUkQU=";
|
|
|
|
meta = with lib; {
|
|
description = "A language for writing HTML user interfaces in Go";
|
|
homepage = "https://templ.guide/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ luleyleo ];
|
|
mainProgram = "templ";
|
|
};
|
|
}
|