this post was submitted on 20 Jun 2023
6 points (100.0% liked)
Nix / NixOS
1758 readers
73 users here now
Main links
Videos
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Don't like this. Some projects are only intended to use
nixos-unstable
. And it wouldn't make sense to expect users to override the flake'snixpkgs
input with.follows
, if they use unstable, because often there are significant differences between code that uses stable and unstable. If the flake targets stable and this is overridden, it's likely things will break.Seems reasonable.
The reasoning behind this is valid but what if it is a project that needs a fork? This is probably rare, so I guess I'm okay with it.
All in all, I think these are the wrong checks to be doing. There are probably many other assurances that could be made, like correct output attributes (what is known of the official schema plus ones made standard by precedent), validate the values, and suggest making tests for certain common outputs.
The project makes me think that if it gains popularity and people start following these guidelines, you'll see badges on repositories that make newbies think that's the sanctioned way to do things. But there is no sanctioned way to do things yet, flakes are supposed to be freeform.
I think these checks need to be thought out more than they have been, and I think especially the first check has the potential to fragment the community more.
For businesses using Nix, maybe it makes sense.