37 lines
707 B
Nix
37 lines
707 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "templ";
|
|
version = "0.2.680";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "a-h";
|
|
repo = "templ";
|
|
rev = "v${version}";
|
|
hash = "sha256-n5OSbVc+UhN0WeWzG1Lop5oX5Zc/hlp/aaBoFjpua64=";
|
|
};
|
|
|
|
vendorHash = "sha256-zYW2dM+g9RfiOrNjhIsfszy3yqTcAKzGbDPpQh5TP6E=";
|
|
|
|
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 ];
|
|
};
|
|
}
|