Nixpkgs/Update Scripts

From NixOS Wiki
Revision as of 20:54, 17 April 2024 by Jopejoe1 (talk | contribs) (Add page about Update Scripts)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Update Scripts can be added to packages via setting, passthru.updateScript which is then executed by r-ryantm to create an updated pull request or can be manually invoked via nix-shell maintainers/scripts/update.nix.

Update Scripts

List of prepackaged update scripts.


Git Updater

Updates to the latest git tag

passthru.updateScript = gitUpdater {
  ignoredVersions = ""; # Optinal Filter to ignore versions
  rev-prefix = "v"; # Optinal set if tags have a prefix before the version number
  odd-unstable = false; # Optinal Ignore odd numberd versions
  patchlevel-unstable = false; # Optinal Ignore patchlevel versions
  url = null; #  Optinal Set this to a git url when the src is not a git repo
};

Unstable Git Updater

Updates to the latest git tag

passthru.updateScript = unstableGitUpdater {
  branch = null; # Optinal Which branch should be updated from
  url = null; #  Optinal Set this to a git url when the src is not a git repo
};