Hacker News new | ask | show | jobs
by fluidwizard 590 days ago
So, we've been using devenv for some time now and it's useful for describing a monorepo-like environment that zig-enjoyers can quickly code and test their changes on the latest version of the erlang server. Also, it's incredibly easy to also manage postgres from there.

It's great if you like local-first development experience.

1 comments

I looked harder at the code to figure out how you're using devenv without a devenv.nix file.

I now see that you're using devenv from within your flake.nix, which I didn't realize you could do.[0] Neat!

I'm going to give that a spin in my projects, as my current solution for pinning versions of Go, Zig, etc. is to use nixhub to look up which commit of nixpkgs corresponds to which version of Go (e.g., Go 1.23.2 is nixpkgs version 4ae2e647537bcdbb82265469442713d066675275). That's obviously a pain to look up and performs poorly, so I'm curious to see how devenv goes.

Thanks for sharing the source!

[0] https://github.com/Dr-Nekoma/lyceum/blob/1b0acf2d4bf295135bb...

Sure! I'm glad the source code helped you!

I've actually written about the process that led us to use the following flake here: https://mtrsk.github.io/blog/2024/experiments-with-erlang-an...