Nixpkgs/Update Scripts: Difference between revisions

Add a link to ryantm logs
Add instructions for disabling nixpkgs-update
 
(One intermediate revision by one other user not shown)
Line 15: Line 15:
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
</syntaxhighlight>If you're wondering why your package isn't receiving update PRs, it can be useful to check the [https://r.ryantm.com/log/ ryantm logs].
</syntaxhighlight>
 
=== nixpkgs-update ===
[https://github.com/nix-community/nixpkgs-update nixpkgs-update] is used by [[r-ryantm]] for automated updates, if the package does not specify an <code>updateScript</code>. For more info, see the [https://nix-community.github.io/nixpkgs-update/ official documentation].
 
If you're wondering why your package isn't receiving automated updates, it can be useful to check the [https://r.ryantm.com/log/ r-ryantm logs].


=== Git Updater ===
=== Git Updater ===


Updates to the latest git tag.
Updates to the latest git tag. This updater only regenerates the source hash and is therefore unsuitable for package definitions with more than one FOD hash (e.g. Rust's <code>cargoHash</code>).


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
Line 34: Line 39:
=== Unstable Git Updater ===
=== Unstable Git Updater ===


Updates to the latest git tag
Updates to the latest git commit. This updater only regenerates the source hash and is therefore unsuitable for package definitions with more than one FOD hash (e.g. Rust's <code>cargoHash</code>).


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
Line 47: Line 52:
};
};
</syntaxhighlight>Source: https://github.com/NixOS/nixpkgs/blob/master/pkgs/common-updater/unstable-updater.nix
</syntaxhighlight>Source: https://github.com/NixOS/nixpkgs/blob/master/pkgs/common-updater/unstable-updater.nix
=== Disabling nixpkgs-update for individual packages ===
Put the following comment somewhere in the package file:
<syntaxhighlight lang="nix">
# nixpkgs-update: no auto update
</syntaxhighlight>


=== Additional Resources ===
=== Additional Resources ===