I apologize in advance if I am posting this in the wrong place.
I see a nix package for Elixir (in fact I see several). Big kudos to those folks who have taken the time to do this!
I want to create a nix flake for an Elixir app I’m working on and I can create a plain old nix flake but I was wondering if someone has already created a nix flake template for Elixir? Googling hasn’t turned up anything (although I may be using the wrong search terms).
I maintain some OSS Nix<->BEAM tooling, which offers flake init templates, support for ingesting asdf .tool-versions files, reusable dev shells and a few other niceties, based on flake-parts lib. Repo is here and feedback or critiques are welcome. Example usage is also documented here.
I’ve been iterating and daily driving it for a couple years at this point, and haven’t had asdf/mise/rtx installed at all in the last 18 months or so.
I use it and enjoy doing so for non-BEAM work, it works pretty well for Rust and Golang binaries, but the output for Elixir was somewhat inferior to a naive Dockerfile as of a year or two ago. The closure size was even larger than a normal Debian based image, but I never bothered to triage why or file issues or PRs to nixpkgs about it. Part of it was that it considered systemd(!) a propagated input.
If I wanted to make it work today I’d use the erlang_nox or erlang_minimal package set to omit wx stuff, and the recently file set support to make sure I didn’t get extra blobs from the source tree or spurious rebuilds.