nixpkgs/pkgs/tools/networking/godns/default.nix

28 lines
775 B
Nix
Raw Normal View History

2021-10-07 05:05:05 +02:00
{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "godns";
2021-12-01 03:23:18 +01:00
version = "2.5.3";
2021-10-07 05:05:05 +02:00
src = fetchFromGitHub {
owner = "TimothyYe";
repo = "godns";
rev = "v${version}";
2021-12-01 03:23:18 +01:00
sha256 = "sha256-C2Auk0BJLhW8r4cnmoZiUddb8rcZqND5fER9L+3ooH4=";
2021-10-07 05:05:05 +02:00
};
2021-12-01 03:23:18 +01:00
vendorSha256 = "sha256-/egdqQCkbmrxuQ3vPfHOtHxAgW143Y2eZEzKAsBVmaI=";
2021-10-07 05:05:05 +02:00
# Some tests require internet access, broken in sandbox
doCheck = false;
2021-11-09 04:51:43 +01:00
ldflags = [ "-s" "-w" "-X main.Version=${version}" ];
2021-10-07 05:05:05 +02: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 ];
};
}