nixpkgs/pkgs/development/compilers/elm
Brian Hicks 847c5f077f elmPackages.*: update to latest versions
elm-verify-examples: 4.0.1 -> 4.0.2
elm-live: 4.0.0 -> 4.0.1

downstream dependencies for most packages
2019-10-11 14:44:25 -05:00
..
packages elmPackages.*: update to latest versions 2019-10-11 14:44:25 -05:00
default.nix ghc: drop obsolete 8.6.4 version 2019-09-18 18:24:42 +02:00
fetchElmDeps.nix elm: extract makeDotElm and fetchElmDeps 2018-11-21 10:57:11 +00:00
makeDotElm.nix elm: extract makeDotElm and fetchElmDeps 2018-11-21 10:57:11 +00:00
README.md Elm: automate packaging with elm2nix 2019-01-03 16:37:09 +00:00
update.sh Elm: automate packaging with elm2nix 2019-01-03 16:37:09 +00:00
versions.dat Elm: automate packaging with elm2nix 2019-01-03 16:37:09 +00:00

To update Elm:

Modify revision in ./update.sh and run it

Notes about the build process:

The elm binary embeds a piece of pre-compiled elm code, used by 'elm reactor'. This means that the build process for 'elm' effectively executes 'elm make'. that in turn expects to retrieve the elm dependencies of that code (elm/core, etc.) from package.elm-lang.org, as well as a cached bit of metadata (versions.dat).

The makeDotElm function lets us retrieve these dependencies in the standard nix way. we have to copy them in (rather than symlink) and make them writable because the elm compiler writes other .dat files alongside the source code. versions.dat was produced during an impure build of this same code; the build complains that it can't update this cache, but continues past that warning.

Finally, we set ELM_HOME to point to these pre-fetched artifacts so that the default of ~/.elm isn't used.

More: https://blog.hercules-ci.com/elm/2019/01/03/elm2nix-0.1/