Alexander Bantyev

Results 186 comments of Alexander Bantyev

Actually, couldn't restrain myself and did it today: https://github.com/tweag/opam-nix/commit/178c26e14388a9af798dd9cae5a88ff461ff9be1 If you remove `hello.opam` from this repository, then `(buildDuneProject "hello" ./. {}).hello` builds it successfully.

Please do! opam-nix is still being developed, and I'll update documentation as I do so. For now, I think the example for `buildDuneProject` should be relevant for you.

Examples were originally intended for prototyping the interface and testing the capabilities of the builder, and only then they became actual examples. I have refactored them to be flakes, so...

And, as for your example, try ```nix { checks = { hello = (opam-nix.lib.${system}.buildDuneProject "hello" ocaml-src { }).hello.overrideAttrs; }; } ```

> Ahh, I am on macOS - will that mean I'll need to wait for that to be supported? Yep. I don't have a mac device to test on. I...

@brendanzab Hey, now it should somewhat work on macOS! External dependency handling is not as good as with Linux yet, but you can help by updating https://github.com/tweag/opam-nix/blob/main/overlays/external/homebrew.nix .

The entire idea of opam-nix is to build packages which aren't in nixpkgs :)

> it seems to went to build the OCaml compiler from scratch on different projects, and it doesn't seem like there is even any local caching of compiler builds This...

One idea would be to add `merlin` to the packageset (by adding `merlin = null` to the query) and then using `merlin` from the resulting scope in your `devShell`. It...

Not sure I understand the question.