nixpkgs/pkgs/by-name/te/templ/package.nix
2024-07-05 09:18:12 +02:00

37 lines
705 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "templ";
version = "0.2.747";
src = fetchFromGitHub {
owner = "a-h";
repo = "templ";
rev = "v${version}";
hash = "sha256-XFktmKFVN1/1Y57ZoUTVKDgEk38491N92orgejFLnMA=";
};
vendorHash = "sha256-p2xuyy11N1nGjz5OhLIy04Kgzz90k3s0+09qi6hbjEc=";
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 ];
};
}