Convert an Elm project into Nix expressions.
It consists of multiple commands:
elm2nix convert
: Givenelm.json
in current directory, all dependencies are parsed and their sha256sum calculatedelm2nix snapshot
: Reads packages fromelm.json
and writes them to binary cache fileregistry.dat
used by elm-compiler.elm2nix init
: Generatesdefault.nix
that glues everything together
Supports Elm 0.19.1
It's already included in devenv when using Elm:
{
langauges.elm.enable = true;
}
$ ./scripts/tests.sh
As it's considered experimental, it's generated for now. Might change in the future.
Instead of running elm2nix init
, create a default.nix
with the following derivation: