clash-geoip: use new update script

This commit is contained in:
Candy Cloud 2022-12-17 17:23:52 +08:00 committed by GitHub
parent 231da669c3
commit 62fa8fe959
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ lib, stdenvNoCC, fetchurl }: { lib, stdenvNoCC, fetchurl, nix-update-script }:
stdenvNoCC.mkDerivation rec { stdenvNoCC.mkDerivation rec {
pname = "clash-geoip"; pname = "clash-geoip";
@ -18,7 +18,11 @@ stdenvNoCC.mkDerivation rec {
runHook postInstall runHook postInstall
''; '';
passthru.updateScript = ./update.sh; passthru = {
updateScript = nix-update-script {
attrPath = pname;
};
};
meta = with lib; { meta = with lib; {
description = "A GeoLite2 data created by MaxMind"; description = "A GeoLite2 data created by MaxMind";