Skip to content

feat: run nix-update with --use-update-script#8

Draft
gepbird wants to merge 1 commit intoselfuryon:mainfrom
gepbird:feat/use-update-script
Draft

feat: run nix-update with --use-update-script#8
gepbird wants to merge 1 commit intoselfuryon:mainfrom
gepbird:feat/use-update-script

Conversation

@gepbird
Copy link

@gepbird gepbird commented Aug 29, 2025

This allows running custom update scripts the nixpkgs style: when a package has passthru.updateScript which can be nix-update-script with extra arguments, gitUpdater or a custom shell script, nix-update will invoke that just like in nixpkgs.

In the background nix-update --use-update-script calls the nixpkgs maintainer update script (https://github.com/Mic92/nix-update/blob/d44f8b524ccea0243009eb07ef4b995734cddbb4/nix_update/update.py#L440-L448), it can be integrated into repositories like someone's nur-packages, but it's not trivial to do, and another solution would be nicer.

"Depends" on #6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant