This is the source code for my blog. The compiled output can be found at another GitHub repository.
To compile and generate the site, just run make. Below are some things to keep
in mind.
- We use
nix-shellto track dependencies like Haskell (for Hakyll in particular) and other things. - We use
cabalto build and install theblogbinary executable which is our static site generator based on Hakyll. But we’re lazy and don’t modify any of the Cabal configuration files, so things are installed/cached into your$HOME/.cache/cabalfolder. - Similary we use
rustupfor some of the Rust code and we userustupfor it because we haven’t figured out how to do it in pure Nix. This is for therust-jsstuff (see the toplevel folder of the same name). - We use a janky
Makefileto capture some of the incantations to get things compiled. We’re lazy though and haven’t actually captured any of the dependencies based on the fileystem, which is whatmakeis designed for. So this means everything is a.PHONYrule and nothing is cached.