Skip to content
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

marsinix for the history of time #3

Open
DavHau opened this issue Oct 24, 2022 · 0 comments
Open

marsinix for the history of time #3

DavHau opened this issue Oct 24, 2022 · 0 comments

Comments

@DavHau
Copy link

DavHau commented Oct 24, 2022

Currently, one problem that marsnix has is that it only provides inputs for one specific nixpkgs revision.
This means that one might run into trouble when building outputs which are based on any other nixpkgs revision.

It would be great if marsnix could provide all inputs for all nixpkgs revisions that have been released during a certain time period, like for example everything between nixos-22.05 and master.
For example, the user could specify a minimum nixpkgs revision, so that marsnix would evaluate and download all inputs of all nixpkgs revisions that have been created after that minimum revision.

At first glance that sounds expensive, but maybe really isn't that bad. Since hydra doesn't evaluate every single nixpkgs revision, marsnix doesn't need to as well. Hydra only evaluates nixpkgs several times a day. Marsnix just needs to get the list of revisions from hydra, and evaluate exactly those revisions.

Still this might result in around 1000 revisions to evaluate for the time frame of one year, but the good thing is that the result of evaluating a revision can be cached forever. Therefore the computation cost only has to be paid once, when the user activates the marsnix service for the first time.

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

No branches or pull requests

1 participant