From ccf95d84b1924b31ad6f65674bc8c1b44541a33c Mon Sep 17 00:00:00 2001 From: Lin Yinfeng Date: Wed, 11 May 2022 12:24:27 +0800 Subject: [PATCH] godns: add updateScript --- pkgs/tools/networking/godns/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/networking/godns/default.nix b/pkgs/tools/networking/godns/default.nix index 27ff7a259778..0f962f383633 100644 --- a/pkgs/tools/networking/godns/default.nix +++ b/pkgs/tools/networking/godns/default.nix @@ -1,4 +1,4 @@ -{ buildGoModule, fetchFromGitHub, lib }: +{ buildGoModule, fetchFromGitHub, lib, nix-update-script }: buildGoModule rec { pname = "godns"; @@ -18,6 +18,8 @@ buildGoModule rec { ldflags = [ "-s" "-w" "-X main.Version=${version}" ]; + passthru.updateScript = nix-update-script { attrPath = pname; }; + 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";