Mic92 / nix-update

Swiss-knife for updating nix packages.
MIT License
512 stars 49 forks source link

zon2nix support #275

Open colemickens opened 2 months ago

colemickens commented 2 months ago

Hi,

I know nothing about zig. It seems like there's a new lockfile thing added in recent versions.

it would be fantastic if nix-update supported it like it does Cargo.lock prefetching, etc.

ex: https://git.sr.ht/~leon_plickat/wayprompt/tree/master/item/build.zig.zon

ref: https://github.com/nix-community/zon2nix

extra: https://zig.news/edyu/zig-package-manager-wtf-is-zon-558e

extra: https://github.com/ziglang/zig/blob/master/doc/build.zig.zon.md

Mic92 commented 2 months ago

It would be ok to add this. I currently don't have a use-case for it. Ideally nixpkgs would expose some updater in passthru that could be called to update deps to minimize the code that needs to be added in nix-update (i.e. we ideally don't have to depend on zon2nix and packages can have their own version they want to use)