Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 37 lines 714 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule rec { 8 pname = "templ"; 9 version = "0.3.924"; 10 11 src = fetchFromGitHub { 12 owner = "a-h"; 13 repo = "templ"; 14 rev = "v${version}"; 15 hash = "sha256-CdBZRF+Q4q/BFPFuY/DQ8V3giM5iTtadM31ta1JF5OE="; 16 }; 17 18 vendorHash = "sha256-oObzlisjvS9LeMYh3DzP+l7rgqBo9bQcbNjKCUJ8rcY="; 19 20 subPackages = [ "cmd/templ" ]; 21 22 env.CGO_ENABLED = 0; 23 24 ldflags = [ 25 "-s" 26 "-w" 27 "-extldflags -static" 28 ]; 29 30 meta = { 31 description = "Language for writing HTML user interfaces in Go"; 32 homepage = "https://github.com/a-h/templ"; 33 license = lib.licenses.mit; 34 mainProgram = "templ"; 35 maintainers = with lib.maintainers; [ luleyleo ]; 36 }; 37}