depot/third_party/nixpkgs/pkgs/by-name/te/templ/package.nix

37 lines
705 B
Nix
Raw Normal View History

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "templ";
version = "0.2.778";
src = fetchFromGitHub {
owner = "a-h";
repo = "templ";
rev = "v${version}";
hash = "sha256-lU8aVTw73HX0lNGPyD8Xnvtnr2VFTXv/S6xCVn6Lg74=";
};
vendorHash = "sha256-ZWY19f11+UI18jeHYIEZjdb9Ii74mD6w+dYRLPkdfBU=";
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 ];
};
}