2022-09-15 18:32:57 +00:00
|
|
|
{ lib
|
|
|
|
, genericUpdater
|
|
|
|
, common-updater-scripts
|
|
|
|
}:
|
|
|
|
|
|
|
|
{ pname ? null
|
|
|
|
, version ? null
|
|
|
|
, attrPath ? null
|
2024-06-24 22:24:25 +00:00
|
|
|
, allowedVersions ? ""
|
2022-09-15 18:32:57 +00:00
|
|
|
, ignoredVersions ? ""
|
|
|
|
, rev-prefix ? ""
|
|
|
|
, odd-unstable ? false
|
|
|
|
, patchlevel-unstable ? false
|
|
|
|
, url ? null
|
2022-12-10 14:19:50 +00:00
|
|
|
, extraRegex ? null
|
2022-09-15 18:32:57 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
genericUpdater {
|
2024-06-24 22:24:25 +00:00
|
|
|
inherit pname version attrPath allowedVersions ignoredVersions rev-prefix odd-unstable patchlevel-unstable;
|
2022-12-10 14:19:50 +00:00
|
|
|
versionLister = "${common-updater-scripts}/bin/list-directory-versions ${lib.optionalString (url != null) "--url=${lib.escapeShellArg url}"} ${lib.optionalString (extraRegex != null) "--extra-regex=${lib.escapeShellArg extraRegex}"}";
|
2022-09-15 18:32:57 +00:00
|
|
|
}
|