Skip to content

Example on how to nixify a project [maintainer=@zimbatm]

Notifications You must be signed in to change notification settings

tenx-tech/todomvc-nix

 
 

Repository files navigation

TodoMVC w/ JavaScript frontend and Haskell backend

built with nix

This project build can be demonstrates how a project can be nixified. The service itself has been cobbled-up together using the https://www.todobackend.com/ and isn't the interesting bit.

What's interesting is how to put together the nix/ folder, look at the git commit history it should be fairly logical.

Usage

Here are the various usage patterns:

  • ./scripts/ci would be invoked by the CI (eg: Jenkins), it builds, runs the tests and pushes to the binary cache.
  • ./scripts/run builds and runs the service locally
  • invoke nix-shell in each service to import development dependencies

TODO

I didn't have the time to implement everything. Here are the missing bits:

  • ./scripts/ci should also push the docker images to the registry
  • setup the binary cache
  • handle docker images on Darwin
  • improve the nix-shell experience

Let me know if you want to see any of these happening.

About

Example on how to nixify a project [maintainer=@zimbatm]

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Nix 32.9%
  • JavaScript 29.2%
  • Haskell 15.4%
  • Shell 10.5%
  • HTML 7.9%
  • CSS 4.1%