Nixpkgs/Update Scripts: Difference between revisions

Jopejoe1 (talk | contribs)
Add page about Update Scripts
 
typo
Line 11: Line 11:
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
passthru.updateScript = gitUpdater {
passthru.updateScript = gitUpdater {
   ignoredVersions = ""; # Optinal Filter to ignore versions
   ignoredVersions = ""; # Optional Filter to ignore versions
   rev-prefix = "v"; # Optinal set if tags have a prefix before the version number
   rev-prefix = "v"; # Optional set if tags have a prefix before the version number
   odd-unstable = false; # Optinal Ignore odd numberd versions
   odd-unstable = false; # Optional Ignore odd numberd versions
   patchlevel-unstable = false; # Optinal Ignore patchlevel versions
   patchlevel-unstable = false; # Optional Ignore patchlevel versions
   url = null; #  Optinal Set this to a git url when the src is not a git repo
   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; # Optinal Which branch should be updated from
   branch = null; # Optional Which branch should be updated from
   url = null; #  Optinal Set this to a git url when the src is not a git repo
   url = null; #  Optional Set this to a git url when the src is not a git repo
};
};
</syntaxhighlight>
</syntaxhighlight>


[[Category:Nixpkgs]]
[[Category:Nixpkgs]]