at 22.05-pre 34 lines 782 B view raw
1{ lib, buildGoModule, fetchFromGitHub }: 2 3buildGoModule rec { 4 pname = "gomplate"; 5 version = "3.9.0"; 6 owner = "hairyhenderson"; 7 rev = "v${version}"; 8 9 src = fetchFromGitHub { 10 inherit owner rev; 11 repo = pname; 12 sha256 = "sha256-liy8cqn+hWoTOHchCY1LLu23tNvz7eGA+AN0d0APjC4="; 13 }; 14 15 vendorSha256 = "sha256-Ph9z/Tom7O7V7yZ/On+etty+Bl653HiY/J3d3yfweeQ="; 16 17 # some tests require network access 18 postPatch = '' 19 rm net/net_test.go 20 ''; 21 22 ldflags = [ 23 "-s" 24 "-w" 25 "-X github.com/${owner}/${pname}/v3/version.Version=${rev}" 26 ]; 27 28 meta = with lib; { 29 description = "A flexible commandline tool for template rendering"; 30 homepage = "https://gomplate.ca/"; 31 maintainers = with maintainers; [ ris jlesquembre ]; 32 license = licenses.mit; 33 }; 34}