diff options
author | José Romildo <malaquias@gmail.com> | 2022-02-20 22:11:49 -0300 |
---|---|---|
committer | José Romildo <malaquias@gmail.com> | 2022-02-21 13:01:49 -0300 |
commit | ba59355e8105035382b2f4056a97b1ffcd1bb70a (patch) | |
tree | ec5ac6cc16144a581e5913ce032320c2d3d2a4bf /pkgs/common-updater/git-updater.nix | |
parent | 60966b5a6ebfb22b16c1400b28eb0f668a0412d3 (diff) |
gitUpdater: init
- Add the 'gitUpdater' helper function to update git based packages, using the 'genericUpdater' function. - Rework argument passing to the `list-git-tags' and 'list-archive-two-level-versions' scripts. - Replace 'genericUpdater' plus 'list-git-tags' by 'gitUpdater'
Diffstat (limited to 'pkgs/common-updater/git-updater.nix')
-rw-r--r-- | pkgs/common-updater/git-updater.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/pkgs/common-updater/git-updater.nix b/pkgs/common-updater/git-updater.nix new file mode 100644 index 0000000000000..304bad9af60ca --- /dev/null +++ b/pkgs/common-updater/git-updater.nix @@ -0,0 +1,17 @@ +{ genericUpdater +, common-updater-scripts +}: + +{ pname +, version +, attrPath ? pname +, ignoredVersions ? "" +, rev-prefix ? "" +, odd-unstable ? false +, patchlevel-unstable ? false +}: + +genericUpdater { + inherit pname version attrPath ignoredVersions rev-prefix odd-unstable patchlevel-unstable; + versionLister = "${common-updater-scripts}/bin/list-git-tags"; +} |