1{
2 lib,
3 genericUpdater,
4 common-updater-scripts,
5}:
6
7{
8 pname ? null,
9 version ? null,
10 attrPath ? null,
11 allowedVersions ? "",
12 ignoredVersions ? "",
13 rev-prefix ? "",
14 rev-suffix ? "",
15 odd-unstable ? false,
16 patchlevel-unstable ? false,
17 # an explicit url is needed when src.meta.homepage or src.url don't
18 # point to a git repo (eg. when using fetchurl, fetchzip, ...)
19 url ? null,
20}:
21
22genericUpdater {
23 inherit
24 pname
25 version
26 attrPath
27 allowedVersions
28 ignoredVersions
29 rev-prefix
30 rev-suffix
31 odd-unstable
32 patchlevel-unstable
33 ;
34 versionLister = "${common-updater-scripts}/bin/list-git-tags ${
35 lib.optionalString (url != null) "--url=${url}"
36 }";
37}