Closed solomon-b closed 1 year ago
This is not an opam-nix problem, and unfortunately there's little we can do from our side. See similar issues: 1 2 3 .You can try an override like this:
jsonrpc = super.jsonrpc.overrideAttrs (oa: { buildPhase = "dune build -p $pname @install"; });
Which skips the part of the build that required unixdll.so
(ocaml unix.cma unvendor.ml
) but it's not clear to me whether the resulting package will work after that.
Can we close this issue, as there's nothing that can be done on opam-nix side?
Hi. Yes consider this issue closed. To make sure I understand the issue correctly, the problem is that jsonrpc
depends on dllunix.so
for which there is not a static build available?
To make sure I understand the issue correctly, the problem is that jsonrpc depends on dllunix.so for which there is not a static build available?
Yes, pretty much. dllunix
relies on dynamic loading (it uses dlopen
), so it can't be built statically.
Describe the bug I'm trying to statically build a project that has a transitive dependency on
dllunix.so
and am getting the following error:To Reproduce My project is not public but here is my flake.nix:
This should fail on any package that depends on, for example, the ocaml
lsp
package.Expected behavior I would expect a successful static build.
Environment
Additional context Add any other context about the problem here.