godns: add updateScript

This commit is contained in:
Lin Yinfeng 2022-05-11 12:24:27 +08:00
parent ec4e18bfb8
commit ccf95d84b1
No known key found for this signature in database
GPG key ID: 46947CB61521FC42

View file

@ -1,4 +1,4 @@
{ buildGoModule, fetchFromGitHub, lib }: { buildGoModule, fetchFromGitHub, lib, nix-update-script }:
buildGoModule rec { buildGoModule rec {
pname = "godns"; pname = "godns";
@ -18,6 +18,8 @@ buildGoModule rec {
ldflags = [ "-s" "-w" "-X main.Version=${version}" ]; ldflags = [ "-s" "-w" "-X main.Version=${version}" ];
passthru.updateScript = nix-update-script { attrPath = pname; };
meta = with lib; { meta = with lib; {
description = "A dynamic DNS client tool supports AliDNS, Cloudflare, Google Domains, DNSPod, HE.net & DuckDNS & DreamHost, etc"; description = "A dynamic DNS client tool supports AliDNS, Cloudflare, Google Domains, DNSPod, HE.net & DuckDNS & DreamHost, etc";
homepage = "https://github.com/TimothyYe/godns"; homepage = "https://github.com/TimothyYe/godns";