tweag / opam-nix

Turn opam-based OCaml projects into Nix derivations
MIT License
111 stars 33 forks source link

Add dune overlays for darwin. #4

Closed rizo closed 2 years ago

rizo commented 2 years ago

Building (a pinned) dune from source currently fails:

error: builder for '/nix/store/02gf25vkaw2pzxk7is35nfsvyx3fn1jk-dune-dev.drv' failed with exit code 2;
       last 10 log lines:
       > clang-11: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
       > Done: 87/885 (jobs: 8)cd _boot && /nix/store/xs10c6ycdd4hphdasyddm7gn37jvq3g6-ocaml-4.13.1/bin/ocamlopt.opt -c -g -I +threads pthread_chdir_stubs.c
       > clang-11: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
       > Done: 96/885 (jobs: 8)cd _boot && /nix/store/xs10c6ycdd4hphdasyddm7gn37jvq3g6-ocaml-4.13.1/bin/ocamlopt.opt -c -g -I +threads fsevents_stubs.c
       > clang-11: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
       > src/fsevents/fsevents_stubs.c:11:10: fatal error: 'CoreServices/CoreServices.h' file not found
       > #include <CoreServices/CoreServices.h>
       >          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       > 1 error generated.
       >
       For full logs, run 'nix log /nix/store/02gf25vkaw2pzxk7is35nfsvyx3fn1jk-dune-dev.drv'.
error: 1 dependencies of derivation '/nix/store/m9gq16bfnd207bay91jrvnjdr2nxr8ma-hello-dev.drv' failed to build

This adds the necessary build inputs for dune on darwin systems.