3 ms·
What's your experience been like with Nix? How do you feel about devenv vs stock Nix? How are you getting devenv to work, as I don't see a devenv.nix file. I'm
by mtlynch 2y ago
What's your experience been like with Nix?
How do you feel about devenv vs stock Nix? How are you getting devenv to work, as I don't see a devenv.nix file. I'm still a Nix beginner and would like to find ways of integrating it more into my development and improving my current techniques.[0]
[0] https://mtlynch.io/notes/nix-dev-environment/ https://mtlynch.io/notes/nix-dev-environment/
- fluidwizard 2y agoSo, 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.
- mtlynch 2y agoI 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/1b0acf2d4bf295135bb38d12374dfbbd6eb85e1c/flake.nix#L229-L287 https://github.com/Dr-Nekoma/lyceum/blob/1b0acf2d4bf295135bb...
- fluidwizard 2y agoSure! 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-and-nix/ https://mtrsk.github.io/blog/2024/experiments-with-erlang-an...