Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 testers, 6 cli53, 7}: 8 9buildGoModule rec { 10 pname = "cli53"; 11 version = "0.8.22"; 12 13 src = fetchFromGitHub { 14 owner = "barnybug"; 15 repo = "cli53"; 16 rev = version; 17 sha256 = "sha256-wfb3lK/WB/B8gd4BOqh+Ol10cNZdsoCoQ+hM33+goM8="; 18 }; 19 20 vendorHash = "sha256-LKJXoXZS866UfJ+Edwf6AkAZmTV2Q1OI1mZfbsxHb3s="; 21 22 ldflags = [ 23 "-s" 24 "-w" 25 "-X github.com/barnybug/cli53.version=${version}" 26 ]; 27 28 passthru.tests.version = testers.testVersion { 29 package = cli53; 30 }; 31 32 meta = with lib; { 33 description = "CLI tool for the Amazon Route 53 DNS service"; 34 homepage = "https://github.com/barnybug/cli53"; 35 license = licenses.mit; 36 maintainers = with maintainers; [ benley ]; 37 mainProgram = "cli53"; 38 }; 39}