From f8b9ebc2473b75a155a17f764a9c7baa4a55f9a2 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Sat, 27 Apr 2024 13:16:10 -0400 Subject: [PATCH] v2ray-domain-list-community: add passthru.updateScript --- pkgs/data/misc/v2ray-domain-list-community/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/data/misc/v2ray-domain-list-community/default.nix b/pkgs/data/misc/v2ray-domain-list-community/default.nix index fb73738345a3..098c95a73d8a 100644 --- a/pkgs/data/misc/v2ray-domain-list-community/default.nix +++ b/pkgs/data/misc/v2ray-domain-list-community/default.nix @@ -1,4 +1,4 @@ -{ stdenv, pkgsBuildBuild, fetchFromGitHub, lib }: +{ stdenv, pkgsBuildBuild, fetchFromGitHub, lib, nix-update-script }: let generator = pkgsBuildBuild.buildGoModule rec { @@ -31,5 +31,8 @@ stdenv.mkDerivation { install -Dm644 dlc.dat $out/share/v2ray/geosite.dat runHook postInstall ''; - passthru.generator = generator; + passthru = { + inherit generator; + updateScript = nix-update-script { }; + }; }