@@ -0,0 +1,27 @@
1+{ buildGoModule, fetchFromGitHub, lib }:
2+
3+buildGoModule rec {
4+ pname = "godns";
5+ version = "2.5";
6+
7+ src = fetchFromGitHub {
8+ owner = "TimothyYe";
9+ repo = "godns";
10+ rev = "v${version}";
11+ sha256 = "sha256-ia0FmV2KlFPh9gmKOqVxiStgmBbX9vUIc7KllpUt44Q=";
12+ };
13+
14+ vendorSha256 = "sha256-FZLDaMrPEyoTGFmGBlpqPWsMuobqwkBaot5qjcRJe9w=";
15+
16+ # Some tests require internet access, broken in sandbox
17+ doCheck = false;
18+
19+ ldflags = [ "-X main.Version=${version}" ];
20+
21+ meta = with lib; {
22+ description = "A dynamic DNS client tool supports AliDNS, Cloudflare, Google Domains, DNSPod, HE.net & DuckDNS & DreamHost, etc";
23+ homepage = "https://github.com/TimothyYe/godns";
24+ license = licenses.asl20;
25+ maintainers = with maintainers; [ yinfeng ];
26+ };
27+}