Site Map - skip to main content - dyslexic font - mobile - text - print

Hobby Public Radio

Your ideas, projects, opinions - podcasted.

New episodes Monday through Friday.

Please support our Patrons

Our hosting is kindly provided by Josh from We would appreciate it if you could donate to help reduce his costs in funding the hosting. He is also accepting bitcoins to 1KsxJr9HtsdaUeU7yaV9bk9bQi21UPBtUq
Please also consider supporting the who are now hosting our media files. Right now, a generous supporter will match your contributions 3-to-1. So your $5 donation results in $20 for the Internet Archive.

hpr2557 :: Styx -- The Purely Functional Static Site Generator

For the Fractalide web site, we are using Styx as a site generator. Here's a bit of how and why.

<< First, < Previous, Latest >>

Host Image
Hosted by clacke on 2018-05-22 is flagged as Clean and is released under a CC-BY-SA license.
Tags: nix, styx, static site generator.
Listen in ogg, spx, or mp3 format. | Comments (1)

I switched phones, and complained about the microphone. It probably made a greater difference that I was recording in 16 kHz Vorbis, because I was on a fresh install of Audio Recorder. Always double-check your settings, and apologies for the quality.

I am currently in the process of converting our website from Hugo to Styx.

Styx is s static site generator written entirely in the Nix language. It is able to figure out exactly what pages need to be rebuilt depending on what you changed in your page source and data sources, and all intermediate results are stored in the Nix store.

The parsing of AsciiDoc and (multi)Markdown is done by external tools, but the templating and layouts is all Nix.

I thought I may have dreamed the bit about carnix or buildRustPackage parsing TOML within Nix, because I couldn’t find any evidence of them ever having done that. But then I discovered it was in nixpkgs-mozilla I had seen it! That’s Mozilla’s overlay for nixpkgs, which makes Rust Nightly always available in Nix, so it’s kind of Nix’s rustup equivalent. So yeah, I guess I had dreamed who did it, but not that somebody did it. :-)


Subscribe to the comments RSS feed.

Comment #1 posted on 2018-04-06T06:19:41Z by clacke

Addendum: Styx was written by Eric Sagnes

I neglected to name the author, because his name wasn't on my mind at the time.

Styx was written by Eric Sagnes, and if you look at his repositories on github[0], it's not really surprising that he would be the one to write a site generator in Nix. :-)


<< First, < Previous, Latest >>

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Anti Spam Question: What does the P in HPR stand for ?