I'm unable to run the following commands in PG, launched as emacs
from nix-shell --arg withEmacs true --arg override '{coq = "8.15"; mathcomp = "1.13";}
):
From mathcomp Require Import all_algebra.
From mathcomp.algebra_tactics Require Import ring.
The first line goes through as usual, but the second one gives an error message:
Error: Cannot find a physical path bound to logical path ring with prefix mathcomp.algebra_tactics.
How should I proceed? Thanks.
not an expert but https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/coq-modules/mathcomp/default.nix does not claim to include
https://github.com/math-comp/algebra-tactics , and it doesn't seem included at all in nixpkgs?
Indeed, Paolo is right.
Note that the command you provide only shows that you are running the Coq Nix Toolbox with some version parameters, it doesn't show which mathcomp packages you will get in scope. This should be defined in your config.nix, so please provide a link to that.
The algebra-tactics repository uses an overlay: https://github.com/math-comp/algebra-tactics/blob/master/.nix/coq-overlays/algebra-tactics/default.nix
So it should be:
Thanks @Paolo Giarrusso @Théo Zimmermann . I don't have access to this file right now, but will send a link to it asap. It's pretty much the default version of config.nix, if I remember correctly: nothing fancy.
Even if it's the default, it should set the value of attribute
. This is what matters.
Then, the dependencies of the package defined by this attribute are the ones you get when running nix-shell
.
The config.nix file can be found in the .nix directory of the https://github.com/jouvelot/mech.v repo. I also put a copy in https://www.dropbox.com/s/pak83ggifd95vhn/config.nix?dl=0. Thanks for any help :smile:
I'll open a PR with what you need.
https://github.com/jouvelot/mech.v/pull/3
Thanks a lot @Théo Zimmermann . Merged and working :+1:
Pierre Jouvelot has marked this topic as resolved.
Last updated: Oct 13 2024 at 01:02 UTC