2022-04-01 18:49:38 +02:00
|
|
|
{ lib
|
|
|
|
, genericUpdater
|
2022-02-21 02:11:49 +01:00
|
|
|
, common-updater-scripts
|
|
|
|
}:
|
|
|
|
|
2022-09-27 22:49:23 +02:00
|
|
|
{ pname ? null
|
|
|
|
, version ? null
|
|
|
|
, attrPath ? null
|
2022-02-21 02:11:49 +01:00
|
|
|
, ignoredVersions ? ""
|
|
|
|
, rev-prefix ? ""
|
|
|
|
, odd-unstable ? false
|
|
|
|
, patchlevel-unstable ? false
|
2022-04-23 20:47:54 +02:00
|
|
|
# an explicit url is needed when src.meta.homepage or src.url don't
|
|
|
|
# point to a git repo (eg. when using fetchurl, fetchzip, ...)
|
2022-04-01 18:49:38 +02:00
|
|
|
, 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
|
|
|
}
|