nixpkgs/pkgs/development/compilers/elm
Neyts Zupan 23fed8e6f5 elmReview: 2.12.0 -> 2.13.1
Rewriten from node2nix to buildNpmPackage. Previous work on this
started in https://github.com/NixOS/nixpkgs/pull/351767/files.

Also, added a simple test.

Refs https://github.com/Thaigersprint/thaigersprint-2025/issues/1
2025-02-15 19:23:54 +07:00
..
lib treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
packages elmReview: 2.12.0 -> 2.13.1 2025-02-15 19:23:54 +07:00
default.nix elmReview: 2.12.0 -> 2.13.1 2025-02-15 19:23:54 +07:00
README.md
registry.dat fix build 2024-01-06 14:21:12 +01:00
update.sh elm: include all cabal2nix in update script 2024-03-28 13:39:28 -03: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/