nix-how / marsnix Goto Github PK
View Code? Open in Web Editor NEWTaking Nix Offline
License: MIT License
Taking Nix Offline
License: MIT License
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.
Currently marsnix does not create garbage collection roots. That is bad because all downloaded files might be wiped by the next garbage collect.
Marsnix could be a lot quicker, if the list of derivations to substitute would not have to be computed on each client.
The marsnix project could set-up a github action that pre-computes the list of dervations required for a specific nixpkgs revision.
This is especially useful regarding #3
marsnix should have a nixos module, setting up a daemon, that regularly syncs the FODs with the latest nixpkgs releases.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.