epgstation: use gitUpdater

This commit is contained in:
Kira Bruneau 2022-04-23 15:11:35 -04:00
parent be590c34c6
commit 122b290dbe
2 changed files with 4 additions and 8 deletions

View File

@ -1,8 +1,7 @@
{ lib
, stdenv
, fetchFromGitHub
, common-updater-scripts
, genericUpdater
, gitUpdater
, writers
, makeWrapper
, bash
@ -130,8 +129,7 @@ let
inherit
pname
version
common-updater-scripts
genericUpdater
gitUpdater
writers
jq
yq;

View File

@ -2,19 +2,17 @@
, version
, homepage
, lib
, common-updater-scripts
, genericUpdater
, gitUpdater
, writers
, jq
, yq
}:
let
updater = genericUpdater {
updater = gitUpdater {
inherit pname version;
attrPath = lib.toLower pname;
rev-prefix = "v";
versionLister = "${common-updater-scripts}/bin/list-git-tags --url=${homepage}";
};
updateScript = builtins.elemAt updater 0;
updateArgs = map (lib.escapeShellArg) (builtins.tail updater);