clash-geoip: use new update script
This commit is contained in:
parent
231da669c3
commit
62fa8fe959
1 changed files with 6 additions and 2 deletions
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue