depot/third_party/nixpkgs/pkgs/tools/networking/godns/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

29 lines
862 B
Nix

{ buildGoModule, fetchFromGitHub, lib, nix-update-script }:
buildGoModule rec {
pname = "godns";
version = "2.7.8";
src = fetchFromGitHub {
owner = "TimothyYe";
repo = "godns";
rev = "v${version}";
sha256 = "sha256-8uGw8F4HcpSsZF8X4cYz9ETsLLBH/NbOk2QzbAXFVFo=";
};
vendorSha256 = "sha256-tXH62HyA/pJxt69GWkVrJ4VrA16KfpEtpK/YKiUkvtU=";
# Some tests require internet access, broken in sandbox
doCheck = false;
ldflags = [ "-s" "-w" "-X main.Version=${version}" ];
passthru.updateScript = nix-update-script { attrPath = pname; };
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 ];
};
}