mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 10:43:27 +00:00
28 lines
765 B
Nix
28 lines
765 B
Nix
{ buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
buildGoModule rec {
|
|
pname = "godns";
|
|
version = "2.5.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "TimothyYe";
|
|
repo = "godns";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-a0wq/qPtwhAtm8khQsusHpsjXzsYixHqH1aAeBs1dKM=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-TYjkow/9W467CMyqV2SSRJAuqXGdnAgR9gtfq4vX4u0=";
|
|
|
|
# Some tests require internet access, broken in sandbox
|
|
doCheck = false;
|
|
|
|
ldflags = [ "-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 ];
|
|
};
|
|
}
|