Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at lanzaboote 26 lines 620 B view raw
1{ lib, buildGoModule, fetchFromGitHub }: 2 3buildGoModule rec { 4 pname = "renderizer"; 5 version = "2.0.13"; 6 7 src = fetchFromGitHub { 8 owner = "gomatic"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-jl98LuEsGN40L9IfybJhLnbzoYP/XpwFVQnjrlmDL9A="; 12 }; 13 14 ldflags = [ 15 "-s" "-w" "-X main.version=${version}" "-X main.commitHash=${src.rev}" "-X main.date=19700101T000000" 16 ]; 17 18 vendorHash = null; 19 20 meta = with lib; { 21 description = "CLI to render Go template text files"; 22 inherit (src.meta) homepage; 23 license = licenses.gpl3; 24 maintainers = with maintainers; [ yurrriq ]; 25 }; 26}