Home

Awesome

elm2nix

Build Status Hackage

Convert an Elm project into Nix expressions.

It consists of multiple commands:

Assumptions

Supports Elm 0.19.1

Installation

It's already included in devenv when using Elm:

{
  langauges.elm.enable = true;
}

Running tests (as per CI)

$ ./scripts/tests.sh

FAQ

Why is mkDerivation inlined into default.nix?

As it's considered experimental, it's generated for now. Might change in the future.

How do I use elm2nix with ParcelJS and Yarn?

Instead of running elm2nix init, create a default.nix with the following derivation:

https://github.com/cachix/elm2nix/issues/49#issuecomment-1696082884