Made overly elaborate example of a ‘Hello World’ package with Nix flakes, OCaml, and Dune: github.com/brendanzab/oca
Disclaimer: I'm a beginner at Nix and I've never really used OCaml or Dune before so if you know these, please tell me if I am doing anything silly. 🥴
Conversation
Replying to
Turning stuff into Nix thingies kind of makes the terribleness of OPAM a bit nicer I think… at least I don't have to deal with the statefulness of it anymore which really bugged me. Just worry about losing empathy with those who haven't bought into the world of nix+direnv…
1
5
I'm really liking how direnv+vscode-direnv means I don't need to have to mess around with brittle editor settings anymore. That's super nifty. Now VS Code just uses whatever tools I'm using in my development shell for that specific directory.
1
6
Replying to
Interesting, how does the dune promote step locate the test results (that I assume nix flake test (should that read `check`?) put somewhere in the Nix store)?
1
You need to run `dune promote` in an impure dev shell, which means it will build the stuff separately, alas. Not sure if it's possible to package that up nicer.
Oh yeah, that's a typo, should be `nix flake check`!
1
1
Show replies
Yeah I had seen this but I already got a pretty good setup going on with my overlays + my remote cache



