Presentation given by @Cyril Cohen
What are the pros and cons compared to opam
dependency management?
I would say the caching is a nice feature for the CO2 footprint of Coq.
I really like the stance on reproducibility, too!
Andrej Dudenhefner said:
What are the pros and cons compared to
opam
dependency management?
Another advantage is that the rev dep testing is a one-liner
Are there plans to add compatibility with Nix flakes?
Ben Siraphob said:
Are there plans to add compatibility with Nix flakes?
No plan, yet, I am still waiting for a doc to be available somewhere
Michael Soegtrop said:
I would say the caching is a nice feature for the CO2 footprint of Coq.
Yes, and that in addition to drastically cut down on CI runtimes for projects depending on heavy reverse dependencies of mathcomp such as coq-fourcolor. I really should migrate coq-graph-theory. :smile:
In the Coq Nix Toolbox repository, we test the whole Coq package set from nixpkgs. Sometimes (if there were not many changes from the previous test) we can see the whole thing complete in minutes because of caching.
Well, for now CI is broken as I am using non-forgetful inheritance and the development version of HB still turns this into an error that I cannot circumvent without breaking things for the stable release :neutral:
Christian Doczkal said:
Well, for now CI is broken as I am using non-forgetful inheritance and the development version of HB still turns this into an error that I cannot circumvent without breaking things for the stable release :neutral:
you can instruct your .nix/config.nix
to pick a version of HB just before the NFI test.
Indeed, one thing that we didn't demo is that it's very easy to depend on a non-released version, be it a branch, a PR, etc. See also the examples for getting custom versions of Coq at https://github.com/coq/coq/wiki/Nix#coq-nix-toolbox
@Christian Doczkal it's fixed in this PR, yet to be merged: https://github.com/math-comp/hierarchy-builder/pull/252
I tried out nix-shell https://coq.inria.fr/nix/toolbox --arg override '{coq = "master";}'
under Windows 10 in wsl2
combined with vscode
and it seems to work fine.
Last updated: Oct 04 2023 at 23:01 UTC