depot/third_party/nixpkgs/pkgs/tools/networking/godns/default.nix
Default email b450903751 Project import generated by Copybara.
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
2022-09-09 16:08:57 +02:00

29 lines
862 B
Nix

{ buildGoModule, fetchFromGitHub, lib, nix-update-script }:
buildGoModule rec {
pname = "godns";
version = "2.8.9";
src = fetchFromGitHub {
owner = "TimothyYe";
repo = "godns";
rev = "v${version}";
sha256 = "sha256-Mqfbug+v47RdFEN13hTFxu/JYINz5fFE2QKzZs3FoJU=";
};
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 { 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 ];
};
}