Closed someplaceguy closed 4 months ago
To add to the mystery, if I add ocamlgraph
to the list of dependencies, then ocamlfind list
can find it without problems, so this issue seems to be specific to fstar
.
But what's more baffling to me is that if I revert the latest fstar
update, then the fstar
derivation seems identical to the one I was using in NixOS 23.11 (which worked fine), and yet this issue still persists...
I figured it out. The problem was this line:
ocamlPackages = pkgs.ocamlPackages;
Apparently the default ocamlPackages
version in NixOS 23.11 matched the ocaml version used for building fstar
(4.14). However, in NixOS 24.05 the default ocaml version is now 5.1, which means that ocamlfind
was looking for libraries built for ocaml 5.1 and therefore could not find the fstar.lib
library built with ocaml 4.14.
So the fix was to change that line into this one instead:
ocamlPackages = pkgs.ocaml-ng.ocamlPackages_4_14;
Describe the bug
I have a minimal
default.nix
created from the example in the NixOS 24.05 manual:When using NixOS 23.11, this works fine for building an F* program extracted to OCaml, because
ocamlfind list
can find the necessary dependencies (in particular, includingfstar.lib
):However, since upgrading to NixOS 24.05,
ocamlfind list
cannot findfstar.lib
anymore (nor its dependencies):Any ideas what could be wrong?
Steps To Reproduce
fstar
to the list of build inputsocamlfind list
and realizefstar.lib
is not in the available list of librariesExpected behavior
I expected
fstar.lib
to be listed in theocamlfind list
output.Notify maintainers
cc @gebner @pnmadelaine
Add a :+1: reaction to issues you find important.