-
Notifications
You must be signed in to change notification settings - Fork 40
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
Only build attributes not found in any cache. #40
Comments
Similar idea for upstream NixOS/nix#3428 |
Once there would be a wrapper around |
This should probably be a wrapper or (I prefer) part of nix-build. Either way I'll leave it open here since it's relevant. |
This is wrapper I came up with: https://github.com/Mic92/ci-nix-build |
Nice! :) I think it's going to be tricky to get argument passing to nix-build to work, but it's quite nice for 90% of the cases where |
I will add support for some build arguments later. |
nice! I have a name suggestion: |
https://github.com/Mic92/nix-build-uncached it is. Even if your flag lands in Nix it is still going to take a while until it ends in a released version. Until than |
This would speed up CI builds significantly and save bandwidth.
Currently the cachix-action will pull built packages:
https://github.com/Mic92/nur-packages/runs/589727774
In the example above there were 500 MB pulled without a single package built.
This is how it can be implemented:
nix-env -f ./non-broken.nix -qaP \* --out-path --xml --meta > packages.xml
grep -oP '(?<=/nix/store/)[^-]*' < packages.xml
(obviously this should be done by proper xml parsing)curl -I https://<binary-cache>/<hash>.narinfo
does not return a 404The text was updated successfully, but these errors were encountered: