Closed vbgl closed 3 months ago
Apparently, this is more complete with older versions but my PR enabled to use ocamlPackages.menhir with dev versions. I'm updating my PR to avoid conflicts.
What’s the use case for “ocamlPackages.menhir with dev versions”?
CI
I’m not sure to understand. In what kind of CI do you need the development version of the menhir OCaml libraries?
That would for instance be needed in the CI of Coq (if it were implemented with coq-nix-toolbox), that compiles CompCert master, particularly now that CompCert depends on MenhirLib.
Ok, so it’s hypothetical. And I’m truly skeptical that the development branch of CompCert starts using unreleased features of the menhir OCaml library.
@vbgl you're probably right about CompCert. Unfortunately, there are also packages like coq-json that require both ocamlPackages.menhir and coqPackages.MenhirLib and they need to be the exact same version for this to work. Thus, the non overridable ocamlPackages.menhir means it's impossible to easyly overlay coqPackages.MenhirLib and even worse (since current fixed version of menhir doesn't compile on Coq master) it's impossible to test things like coq-json on Coq master.
The fix offered in https://github.com/NixOS/nixpkgs/pull/331749/files is quite trivial and is basically a copy/paste of what's done for ocamlPackages.elpi for more than two years now, so I'm pretty confident this is both working and trouble free.
Thanks for the detailed explanation.
@vbgl how does this relate to https://github.com/NixOS/nixpkgs/pull/331749 ?