depot/third_party/nixpkgs/pkgs/tools/networking/godns/default.nix
Default email a3d4720129 Project import generated by Copybara.
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
2022-12-28 22:21:41 +01:00

29 lines
844 B
Nix

{ buildGoModule, fetchFromGitHub, lib, nix-update-script }:
buildGoModule rec {
pname = "godns";
version = "2.9.0";
src = fetchFromGitHub {
owner = "TimothyYe";
repo = "godns";
rev = "v${version}";
sha256 = "sha256-FxVvqZMB9UGryNEbBFaxpK+VgrMH73x0fseU0dgCH0o=";
};
vendorSha256 = "sha256-PGqknRGtN0XRGPnAsWzQrlJZG5BzQIhlSysGefkxysE=";
# 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";
license = licenses.asl20;
maintainers = with maintainers; [ yinfeng ];
};
}