Nixpkgs/Update Scripts: Difference between revisions
Move nix-update-script to top of prepackaged update scripts section |
Add nix-update-script as alternate to unstableGitUpdater |
||
| Line 5: | Line 5: | ||
=== nix-update by Mic92 === | === nix-update by Mic92 === | ||
[https://github.com/Mic92/nix-update nix-update] works for a range of different sources and will do the right thing most of the time.<syntaxhighlight lang="nix"> | [https://github.com/Mic92/nix-update nix-update] works for a range of different sources and will do the right thing most of the time. | ||
<syntaxhighlight lang="nix"> | |||
passthru.updateScript = nix-update-script { }; | passthru.updateScript = nix-update-script { }; | ||
</syntaxhighlight> | |||
If you want functionality similar to that of unstableGitUpdater but with the additional handlers offered by nix-update, use: | |||
<syntaxhighlight lang="nix"> | |||
passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; }; | |||
</syntaxhighlight> | </syntaxhighlight> | ||