mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
219ca58452
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.
22 lines
548 B
Nix
22 lines
548 B
Nix
{ lib
|
|
, genericUpdater
|
|
, common-updater-scripts
|
|
}:
|
|
|
|
{ pname
|
|
, version
|
|
, attrPath ? pname
|
|
, ignoredVersions ? ""
|
|
, 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 ${lib.optionalString (url != null) "--url=${url}"}";
|
|
}
|