diff options
author | Lin Yinfeng <lin.yinfeng@outlook.com> | 2024-03-17 23:11:45 +0800 |
---|---|---|
committer | Lin Yinfeng <lin.yinfeng@outlook.com> | 2024-03-17 23:11:45 +0800 |
commit | ad4ea38ddfe5889c0faa4ab6c0b531542b40f803 (patch) | |
tree | 53fddf81eeff75d6fae01172ad88ccdd084193b2 /pkgs/by-name/go | |
parent | 948fd5cfdcf4de04d3d5323dfbb2026b35e94f75 (diff) |
godns: migrate to by-name
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"; + }; +} |