Conversation

This is a general trend in Nix examples and documentation. I suspect it is because actually pinning things in Nix looks embarrassingly ugly and verbose (at least historically, no idea about flakes).
1
4
I see a lot of files with pinned stuff and magic configs and things that seem to be generated by tools, but it's hard to figure out what process people went through to arrive at this stuff! Or whether they use tools to keep the configs up to date or not… 😬
1
I’ve been a happy niv user for a long time now. It puts versions in a json file you can easily read, edit, and copy between projects to increase sharing if so desired.
1
Replying to and
Yes, exactly! The niv command line tool has commands to add, update, and modify dependencies in the lock file. I was unreasonably put off at first for some reason, but it won me over. It’s quite well thought out.
1
1
Cool! It would be really neat if something like this could be built in at some point - seems like a handy thing to have. Is niv the thing I see where people have a bunch of autogenerated nix files in their project repos?
1
Show replies