Jakub Pawłowicz

Posts » Site redo

I've recently stumbled upon an issue when trying to set up this site deployment using nix derivations. It was related to mix dependency compilation errors, which took me way too much time to debug, before I finally gave up (on the task as well as on Claude ;-).

In the true spirit of programming I decided to ditch my old setup and redo site generator in pure Elixir. This way I didn't have to deal with mix compilation anymore!

So I sat down and wrote everything from scratch including a simple Markdown parser. Everything is one Elixir file, easy to grasp and extend. The whole thing taught me some basic Erlang networking too, as the script includes a super simple local web server.

And the cherry on top is that I can deploy the whole site as a nix derivation. So `nix build` locally and then `nix copy` to production server. Works like a charm!

p.s. Sorry if I butchered your RSS feed recently as the output could be little different than before.

Tip: You can use & or j & k to navigate between posts.