Closed ethanthoma closed 9 months ago
Hi! I think it needs a couple of overrides. I'll take a look.
Should be fixed in 9f03f7e0664c369f25e614d3f3be74ea78b647fa
Thank you so much, I will try later today.
Hello, sorry for the late reply. I tried to reply earlier but my internet died. It builds successfully now but fails to run. I copied this example from the raylib-ocaml
github. It runs fine with dune exec hello
and builds fine with nix build
but running ./result/bin/hello
fails with
INFO: Initializing raylib 4.5
INFO: Supported raylib modules:
INFO: > rcore:..... loaded (mandatory)
INFO: > rlgl:...... loaded (mandatory)
INFO: > rshapes:... loaded (optional)
INFO: > rtextures:. loaded (optional)
INFO: > rtext:..... loaded (optional)
INFO: > rmodels:... loaded (optional)
INFO: > raudio:.... loaded (optional)
WARNING: GLFW: Error: 65542 Description: GLX: No GLXFBConfigs returned
WARNING: GLFW: Error: 65545 Description: GLX: Failed to find a suitable GLXFBConfig
WARNING: GLFW: Failed to initialize Window
FATAL: Failed to initialize Graphic Device
I tried searching online for solutions. Most places refer to driver issues but that wouldn't make sense as to why I can run it with dune but not with opamnix.
I ran the command nix run --impure github:guibou/nixGL -- ./result/bin/hello
and it worked. Thank you!
Describe the bug I want to use the raylib-ocaml library (github and opam) in my dune project. Trying to build it fails for conf-libxcursor.
To Reproduce
nix-shell -p dune opam
opam exec -- dune init proj hello
cd hello
nix flake init -t github:tweag/opam-nix
buildOpamProject
tobuildDuneProject
raylib = "*";
to scope${package} = prev.${package}.overrideAttrs (oa: { buildInputs = oa.buildInputs ++ [ final.raylib ]; });
to overlaynix build
Expected behavior Successful build.
Environment
Additional context Add any other context about the problem here. The full flake is:
Full output from build: