Nixpkgs/Update Scripts: Difference between revisions
Add page about Update Scripts |
typo |
||
Line 11: | Line 11: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
passthru.updateScript = gitUpdater { | passthru.updateScript = gitUpdater { | ||
ignoredVersions = ""; # | ignoredVersions = ""; # Optional Filter to ignore versions | ||
rev-prefix = "v"; # | rev-prefix = "v"; # Optional set if tags have a prefix before the version number | ||
odd-unstable = false; # | odd-unstable = false; # Optional Ignore odd numberd versions | ||
patchlevel-unstable = false; # | patchlevel-unstable = false; # Optional Ignore patchlevel versions | ||
url = null; # | url = null; # Optional Set this to a git url when the src is not a git repo | ||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 25: | Line 25: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
passthru.updateScript = unstableGitUpdater { | passthru.updateScript = unstableGitUpdater { | ||
branch = null; # | branch = null; # Optional Which branch should be updated from | ||
url = null; # | url = null; # Optional Set this to a git url when the src is not a git repo | ||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Nixpkgs]] | [[Category:Nixpkgs]] |
Revision as of 23:03, 17 April 2024
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 = ""; # Optional Filter to ignore versions
rev-prefix = "v"; # Optional set if tags have a prefix before the version number
odd-unstable = false; # Optional Ignore odd numberd versions
patchlevel-unstable = false; # Optional Ignore patchlevel versions
url = null; # Optional 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; # Optional Which branch should be updated from
url = null; # Optional Set this to a git url when the src is not a git repo
};