f15117a874
- This information is availabe from environment variables defined by maintainers/scripts/update.nix - Renamed the shell script to generic-update-script.sh - Add a new optional argument (representing the package name) to the shell script - The version lister is called with a new optional argument (representing the package attribute path)
20 lines
461 B
Nix
20 lines
461 B
Nix
{ lib
|
|
, genericUpdater
|
|
, common-updater-scripts
|
|
}:
|
|
|
|
{ pname ? null
|
|
, version ? null
|
|
, attrPath ? null
|
|
, ignoredVersions ? ""
|
|
, rev-prefix ? ""
|
|
, odd-unstable ? false
|
|
, patchlevel-unstable ? false
|
|
, url ? null
|
|
}:
|
|
|
|
genericUpdater {
|
|
inherit pname version attrPath ignoredVersions rev-prefix odd-unstable patchlevel-unstable;
|
|
versionLister = "${common-updater-scripts}/bin/list-archive-two-levels-versions ${lib.optionalString (url != null) "--url=${url}"}";
|
|
}
|