-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optional dependency on opam-overlays and mirage-opam-overlays #43
Comments
They shouldn't be; AFAIU they are only added to
AFAIU the only downside to having them in opam-nix is slightly bigger lockfiles downstream; users of downstream projects that don't call |
Indeed, I misread the code. It's more than bigger lockfiles, it's also bigger flake.nix files for people that like to control their dependency and more time lost not understanding what they are doing. Is it a good practice to override |
I think it's ok, but when you override
AFAIK there's no way to make flake inputs without "default" values. Do you mean removing the inputs completely, I'll defer to @RyanGibb, who introduced them in the first place.
In your case, |
Good to know! Though, the point of overriding the input is not necessarily to get the most uptodate version but to have more control (eg. easily switch to an other branch than
That's what I mean.
That's what I'll do, thanks! |
I think if the monorepo functions aren't used then the only downside is a slightly bigger lockfile. |
I'm not suggesting to go without the overlays, but instead to ask the user provide them. Examples/templates are already huge and could host the management of these two overlays, which wouldn't be the most complicated part. To go further, I would suggest to do the same for |
I understand what you mean, and I do a similar thing for my own nixos config. I don't have a good intuition for what is best for new users. |
I'm against this: it will break virtually all downstream flakes, of which there are quite a few already. |
opam-nix
have a lot of dependencies but two seem unnecessary:opam-overlays
andmirage-opam-overlays
.They are added to the list of repositories used for solving, regardless of whether the packages being solved need these or not. Since #18
This adds overhead to the build but what worries me the most is the extra maintenance caused by these. I actively fight Nix tendency to use several version of each dependency and end up with a large
flake.nix
:These dependencies could be optional, at the cost of extra setup for users that need them and are not fighting against Nix.
The text was updated successfully, but these errors were encountered: