forked from mirrors/nixpkgs
gitUpdater: add explicit url parameter to specify a git tree for tags
That way gitUpdater could be used to extract most recent published releases for .nix files that don't use git directly to define builds. An example is iproute2 package which does not have a single place to lookup most recent release.
This commit is contained in:
parent
0b1a2907d6
commit
219ca58452
|
@ -1,4 +1,5 @@
|
|||
{ genericUpdater
|
||||
{ lib
|
||||
, genericUpdater
|
||||
, common-updater-scripts
|
||||
}:
|
||||
|
||||
|
@ -9,9 +10,12 @@
|
|||
, rev-prefix ? ""
|
||||
, odd-unstable ? false
|
||||
, patchlevel-unstable ? false
|
||||
# explicit url is useful when git protocol is used only for tags listing
|
||||
# while actual release is referred by tarball
|
||||
, url ? null
|
||||
}:
|
||||
|
||||
genericUpdater {
|
||||
inherit pname version attrPath ignoredVersions rev-prefix odd-unstable patchlevel-unstable;
|
||||
versionLister = "${common-updater-scripts}/bin/list-git-tags";
|
||||
versionLister = "${common-updater-scripts}/bin/list-git-tags ${lib.optionalString (url != null) "--url=${url}"}";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue