diff options
Diffstat (limited to 'pkgs/by-name/go')
-rw-r--r-- | pkgs/by-name/go/godns/package.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/by-name/go/godns/package.nix b/pkgs/by-name/go/godns/package.nix new file mode 100644 index 0000000000000..a41d1993270b9 --- /dev/null +++ b/pkgs/by-name/go/godns/package.nix @@ -0,0 +1,39 @@ +{ lib +, buildGoModule +, fetchFromGitHub +, nix-update-script +}: + +buildGoModule rec { + pname = "godns"; + version = "3.0.7"; + + src = fetchFromGitHub { + owner = "TimothyYe"; + repo = "godns"; + rev = "refs/tags/v${version}"; + hash = "sha256-7zgvrEVt8xg54NijcqnXoZcXetzOu9h3Ucw7w03YagU="; + }; + + vendorHash = "sha256-veDrGB6gjUa8G/UyKzEgH2ItGGEPlXDePahq2XP2nAo="; + + # Some tests require internet access, broken in sandbox + doCheck = false; + + ldflags = [ + "-s" + "-w" + "-X main.Version=${version}" + ]; + + passthru.updateScript = nix-update-script { }; + + meta = with lib; { + description = "A dynamic DNS client tool supports AliDNS, Cloudflare, Google Domains, DNSPod, HE.net & DuckDNS & DreamHost, etc"; + homepage = "https://github.com/TimothyYe/godns"; + changelog = "https://github.com/TimothyYe/godns/releases/tag/v${version}"; + license = licenses.asl20; + maintainers = with maintainers; [ yinfeng ]; + mainProgram = "godns"; + }; +} |