Installing/setting up opam-only Rocq package #131
|
I'm fairly new to Nix and opam (unfortunately) so have been struggling to debug both. I'd like to be able to make use of this library of undecidability results alongside the vscoq-language-server so I can develop some new Rocq files using these undecidability results. The undecidability results are exposed in opam here but have some particular ocaml requirements that seem to be causing things to break. What I have so far is the following, based on the Rocq example in this repo. This is giving the following errors at present: I think the issue is coming from not specifying the vscoq-language-server version correctly, but I'm not sure so any help would be greatly appreciated! |
Replies: 4 comments 4 replies
|
Maybe you need to get rid of |
|
Right, I added the various version specifications because simply leaving
“*” also unfortunately gave the same kind of message about versions, so it
seems that somewhere between nix and opam the version resolution is falling
apart.
…On Thu, Sep 4, 2025 at 08:19 Alexander Bantyev ***@***.***> wrote:
Maybe you need to get rid of ocaml-base-compiler = "4.14.1+flambda"; in
the query? It seems like something somewhere requests it to be a higher
version.
—
Reply to this email directly, view it on GitHub
<#131 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AL5FCHAXKN747SYCGLLSPUL3RAU3LAVCNFSM6AAAAACFSFNAOCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIMZQG4YDQMI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
|
Actually, removing an explicit requirement on |
|
Would this require a separate flake.nix/shell.nix file? I'm not sure what
you mean exactly because I'm trying to use a set of rocq files from someone
else's repository that they have setup with opam. I guess my question is
where should the mkShell go?
…On Fri, Sep 5, 2025 at 6:23 AM Alexander Bantyev ***@***.***> wrote:
Hm, how are you expecting to get it?
I would suspect in the end you actually want to properly package your rocq
files, build that package with opam-nix and then add it to inputsFrom in
an mkShell. In the meantime (just for hacking) you can try something like
this:
devShells.default = pkgs.mkShell {
packages = with self.legacyPackages.${system}; [
vscoq-language-server
coq-library-undecidability
coq
];
};
—
Reply to this email directly, view it on GitHub
<#131 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AL5FCHEWD7HK6BKQ3UJQCVD3RFQCNAVCNFSM6AAAAACFSFNAOCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIMZRGY4DIOI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hm, how are you expecting to get it?
I would suspect in the end you actually want to properly package your rocq files, build that package with
opam-nixand then add it toinputsFromin anmkShell. In the meantime (just for hacking) you can try something like this: