Elm + Nix: A reproducible RealWorld clone
Source: Dev.to
Nix has infected my soul. I don’t know how else to describe it.
I refactored my RealWorld clone, dwayne/elm-conduit, to use Nix. It uses Nix for the development environment, building, serving, running checks, deploying, and CI.
Quick commands (requires Nix)
-
Frontend workshop environment
nix run github:dwayne/elm-conduit#workshop -
Sandbox
nix run github:dwayne/elm-conduit#sandbox -
Development version of the web app
nix run github:dwayne/elm-conduit -
Production version (same as the Netlify deployment)
nix run github:dwayne/elm-conduit#prod
The Elm builds are all powered by dwayne/elm2nix.
The Classics
This completes my refactoring of “The Classics” to use Nix.
-
TodoMVC –
nix run github:dwayne/elm-todos#prod
Repository: -
Super Rentals –
nix run github:dwayne/elm-super-rentals#prod
Repository: -
7GUIs –
nix run github:dwayne/elm-7guis#prod
Repository: -
Conduit –
nix run github:dwayne/elm-conduit#prod
Repository:
All of these projects now use Nix in the same way, providing a consistent workflow for combining Elm and Nix.