forked from mirrors/nixpkgs
28 lines
773 B
Nix
28 lines
773 B
Nix
{ buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
buildGoModule rec {
|
|
pname = "godns";
|
|
version = "2.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "TimothyYe";
|
|
repo = "godns";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-U8fmjcPeTcKlf721UIbA4/JYeM4l+OIyAPGNp8IPvSk=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-OyqkjA90zcfqRL6pfISR/6WXbv5LwVhKDECBtlqords=";
|
|
|
|
# Some tests require internet access, broken in sandbox
|
|
doCheck = false;
|
|
|
|
ldflags = [ "-s" "-w" "-X main.Version=${version}" ];
|
|
|
|
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 ];
|
|
};
|
|
}
|