2022-04-01 12:49:38 -04:00
|
|
|
{ lib
|
|
|
|
, genericUpdater
|
2022-02-20 20:11:49 -05:00
|
|
|
, common-updater-scripts
|
|
|
|
}:
|
|
|
|
|
2022-09-27 16:49:23 -04:00
|
|
|
{ pname ? null
|
|
|
|
, version ? null
|
|
|
|
, attrPath ? null
|
2024-06-24 18:24:25 -04:00
|
|
|
, allowedVersions ? ""
|
2022-02-20 20:11:49 -05:00
|
|
|
, ignoredVersions ? ""
|
|
|
|
, rev-prefix ? ""
|
|
|
|
, odd-unstable ? false
|
|
|
|
, patchlevel-unstable ? false
|
2022-04-23 14:47:54 -04: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 12:49:38 -04:00
|
|
|
, url ? null
|
2022-02-20 20:11:49 -05:00
|
|
|
}:
|
|
|
|
|
|
|
|
genericUpdater {
|
2024-06-24 18:24:25 -04:00
|
|
|
inherit pname version attrPath allowedVersions ignoredVersions rev-prefix odd-unstable patchlevel-unstable;
|
2022-04-01 12:49:38 -04:00
|
|
|
versionLister = "${common-updater-scripts}/bin/list-git-tags ${lib.optionalString (url != null) "--url=${url}"}";
|
2022-02-20 20:11:49 -05:00
|
|
|
}
|