2022-04-01 18:49:38 +02:00
|
|
|
{ lib
|
|
|
|
, genericUpdater
|
2022-02-21 02:11:49 +01:00
|
|
|
, common-updater-scripts
|
|
|
|
}:
|
|
|
|
|
|
|
|
{ pname
|
|
|
|
, version
|
|
|
|
, attrPath ? pname
|
|
|
|
, ignoredVersions ? ""
|
|
|
|
, rev-prefix ? ""
|
|
|
|
, odd-unstable ? false
|
|
|
|
, patchlevel-unstable ? false
|
2022-04-01 18:49:38 +02:00
|
|
|
# explicit url is useful when git protocol is used only for tags listing
|
|
|
|
# while actual release is referred by tarball
|
|
|
|
, url ? null
|
2022-02-21 02:11:49 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
genericUpdater {
|
|
|
|
inherit pname version attrPath ignoredVersions rev-prefix odd-unstable patchlevel-unstable;
|
2022-04-01 18:49:38 +02:00
|
|
|
versionLister = "${common-updater-scripts}/bin/list-git-tags ${lib.optionalString (url != null) "--url=${url}"}";
|
2022-02-21 02:11:49 +01:00
|
|
|
}
|