-
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
Old versions of Coq alongside some Coq packages fail to build #49
Comments
Hi! Should be fixed now. If you encounter more problems, please feel free to open corresponding issues. |
Hi @balsoft, thank you very much for your efforts. I am still encountering an issue related to building Coq packages alongside Coq, though the error message is different to prior to 9c7e1be. I see you added a Coq Example which I've tried to use but may be using improperly. My goal is to have a shell with the same dependencies loaded as if I'd used
Currently, I'm using the following flake.nix file:
I think perhaps the above flake.nix is trying to make use of the .opam file from the The following error appears:
Thanks for your help once again. I feel this is still the current issue, but I cannot re-open it. If you'd prefer me to make it a new issue, that's fine too. Apologies for the delay in getting back to you. |
I can reproduce. In this particular case, relaxing the
Results in a successful build with the same flake as you have provided. I'll try to figure out how to make it build with an older version. |
Thanks @balsoft, I can also confirm that relaxing the |
Unfortunately, getting old versions of Coq to work seems to require more work than I'm able to put in at the moment; it's quite difficult to configure installation locations for |
Thanks for your efforts @balsoft! |
Describe the bug
Old versions of Coq alongside some Coq packages listed in an opam file fail to install, the fix introduced in 5bfdc95 only works for newer versions of Coq. The fix doesn't work for older versions of Coq, see #48 and the resulting 34d74ca which disables it for Coq < 8.17.
To Reproduce
An opam file including, for example:
fails to build when following the standard instructions in the README of opam-nix with the error:
(Using
nix develop --impure
to trigger a build of Coq).Expected behavior
Such an opam file would succeed at building Coq with coq-ott, following the instructions of the README.
Environment
OS name + version: NixOS
Version of the code: https://github.com/tweag/opam-nix/tree/34d74ca9d64339c453cbac3f85255644361937e2
Additional context
Removing the version constraints resulting in the following opam file, builds successfully. Giving: Coq v8.17.1
I am trying to build the Coq specification of Michelson, Mi-Cho-Coq, with this .opam file.
This fails with:
I also tried the .opam file of the dev branch of Mi-Cho-Coq, which fails with a different error:
The dev branch's .opam file builds successfully via opam.
The text was updated successfully, but these errors were encountered: