3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/godns/default.nix

28 lines
775 B
Nix
Raw Normal View History

2021-10-07 04:05:05 +01:00
{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "godns";
2021-11-09 03:51:22 +00:00
version = "2.5.1";
2021-10-07 04:05:05 +01:00
src = fetchFromGitHub {
owner = "TimothyYe";
repo = "godns";
rev = "v${version}";
2021-11-09 03:51:22 +00:00
sha256 = "sha256-a0wq/qPtwhAtm8khQsusHpsjXzsYixHqH1aAeBs1dKM=";
2021-10-07 04:05:05 +01:00
};
2021-11-09 03:51:22 +00:00
vendorSha256 = "sha256-TYjkow/9W467CMyqV2SSRJAuqXGdnAgR9gtfq4vX4u0=";
2021-10-07 04:05:05 +01:00
# Some tests require internet access, broken in sandbox
doCheck = false;
2021-11-09 03:51:43 +00:00
ldflags = [ "-s" "-w" "-X main.Version=${version}" ];
2021-10-07 04:05:05 +01: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";
license = licenses.asl20;
maintainers = with maintainers; [ yinfeng ];
};
}