blob: d4380a9596097c3d5500e8f3002630c68926f0ed (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "templ";
version = "0.2.663";
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-TU8QG6OmUzSNDAX9W0Ntmz5cucLqVQeTskfnJbm/YM0=";
};
vendorHash = "sha256-Upd5Wq4ajsyOMDiAWS2g2iNO1sm1XJc43AFQLIo5eDM=";
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";
};
}
|