cd8fd7fb429b229fb154b43cf34c0e6d07f79e67
hakyll-nix-template
Features
tl;dr: nix-build will collect all your pinned dependencies, build your hakyll
site, and output the built site in a result/ directory. If you set up the
main GitHub Action with what it needs (your
cachix cache, and your app needs a CACHIX_SIGNING_KEY
secret), it will deploy your built site to a gh-pages branch.
- Hakyll (see the generator folder)
- Haskell
nix-shellenvironment inside thegeneratorfolder through which you can runhakyll-site watchand all other hakyll commands, including the ability to runghciand load haskell modules for testing - Ability to patch hakyll via
hakyll.patch - Ability to provide nixpkgs overrides for packages whose versions need to come from hackage
- RSS & Atom XML feed generation
- Sitemap generation
- Reasonable pandoc markdown customization to make it as close to GitHub's style as possible
Slug.hsmodule that makes nice URIs- Many other opinionated general website setup features that should be very helpful
- Haskell
- Nix
- Pinned nixpkgs, niv, and pre-commit-hooks.nix
nix-buildwill build your site into aresult/directorynix-shellin the root will give you a shell with thetoolsdependencies in ./nix/default.nixnix-shellin ./generator will give you a haskell shell with yourhakyll-siteavailable, as well asghci
- Dev linting via pre-commit-hooks.nix
- Encourages dev use of lorri
- Deployment through a GitHub Actions
build with cachix and deploying to
GitHub Pages via a
gh-pagesbranch
Description
Languages
Haskell
54.8%
CSS
25%
HTML
15.9%
Nix
4.3%