Home

nur @65981c45c50d6a637dc5494ec94f789eb750f194 - refs - log -
-
https://git.jolheiser.com/nur.git
My NUR
nur / pkgs / templ / default.nix
- raw
 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
{
  buildGoModule,
  fetchFromGitHub,
  lib,
  ...
}:
buildGoModule rec {
  pname = "templ";
  version = "0.2.334";

  src = fetchFromGitHub {
    owner = "a-h";
    repo = "templ";
    rev = "v${version}";
    sha256 = "sha256-liELstdoh0/KaOY8TnjCmTgp2CYWk9rZnMuK1RUb3OM=";
  };

  vendorSha256 = "sha256-7QYF8BvLpTcDstkLWxR0BgBP0NUlJ20IqW/nNqMSBn4=";

  ldflags = ["-s" "-w" "-X=github.com/a-h/templ.Version=${version}"];

  subPackages = ["cmd/templ"];

  meta = with lib; {
    description = "A language for writing HTML user interfaces in Go. ";
    homepage = "https://github.com/a-h/templ";
    license = licenses.mit;
    mainProgram = "templ";
  };
}