2023-03-04 12:14:45 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nix-update-script
|
|
|
|
}:
|
2021-10-07 14:46:35 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "godns";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "2.9.8";
|
2021-10-07 14:46:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "TimothyYe";
|
|
|
|
repo = "godns";
|
2023-03-04 12:14:45 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-Nfw3pDqdCeaUKi+MzNIuRTwJHSoUbkJfWRJTAGvkBOQ=";
|
2021-10-07 14:46:35 +00:00
|
|
|
};
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
vendorHash = "sha256-iAU62/0MjzxwuMvIobhIZEqDJUpRqwEabnazH7jBRTE=";
|
2021-10-07 14:46:35 +00:00
|
|
|
|
|
|
|
# Some tests require internet access, broken in sandbox
|
|
|
|
doCheck = false;
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X main.Version=${version}"
|
|
|
|
];
|
2021-10-07 14:46:35 +00:00
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
2022-05-18 14:49:53 +00:00
|
|
|
|
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";
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/TimothyYe/godns/releases/tag/v${version}";
|
2021-10-07 14:46:35 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ yinfeng ];
|
|
|
|
};
|
|
|
|
}
|