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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
862 B
Nix
Raw Normal View History

2022-05-11 05:24:27 +01:00
{ buildGoModule, fetchFromGitHub, lib, nix-update-script }:
2021-10-07 04:05:05 +01:00
buildGoModule rec {
pname = "godns";
2022-05-11 05:26:43 +01:00
version = "2.7.7";
2021-10-07 04:05:05 +01:00
src = fetchFromGitHub {
owner = "TimothyYe";
repo = "godns";
rev = "v${version}";
2022-05-11 05:26:43 +01:00
sha256 = "sha256-55A1dxVRIngfS43V+iM1RX2U6eQyPsIAHgyxKGO4yrY=";
2021-10-07 04:05:05 +01:00
};
2022-02-28 05:55:34 +00:00
vendorSha256 = "sha256-vhByl9oJjFIvOskAgLubZ5RCcitKd2jjxi8D9nU6850=";
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
2022-05-11 05:24:27 +01:00
passthru.updateScript = nix-update-script { attrPath = pname; };
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 ];
};
}