2022-05-18 14:49:53 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib, nix-update-script }:
|
2021-10-07 14:46:35 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "godns";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "2.8.9";
|
2021-10-07 14:46:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "TimothyYe";
|
|
|
|
repo = "godns";
|
|
|
|
rev = "v${version}";
|
2022-09-09 14:08:57 +00:00
|
|
|
sha256 = "sha256-Mqfbug+v47RdFEN13hTFxu/JYINz5fFE2QKzZs3FoJU=";
|
2021-10-07 14:46:35 +00:00
|
|
|
};
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
vendorSha256 = "sha256-PGqknRGtN0XRGPnAsWzQrlJZG5BzQIhlSysGefkxysE=";
|
2021-10-07 14:46:35 +00:00
|
|
|
|
|
|
|
# Some tests require internet access, broken in sandbox
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X main.Version=${version}" ];
|
2021-10-07 14:46:35 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
passthru.updateScript = nix-update-script { attrPath = pname; };
|
|
|
|
|
2021-10-07 14:46:35 +00:00
|
|
|
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";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ yinfeng ];
|
|
|
|
};
|
|
|
|
}
|