nixpkgs/pkgs/development/compilers/elm
sternenseemann 4a9619c1e9 elmPackages: jailbreak aeson 1.5 in haskell.packages.ghc8107 overlay
Our Haskell package set for 8.10.7 violates the following bounds of
aeson 1.5:

    hashable-time >=0.2.1 && <0.3,
    primitive >=0.7.0.1 && <0.8,
    vector >=0.12.0.1 && <0.13

Seems like it still compiles in spite of that…
2023-10-18 16:34:12 +02:00
..
packages elmPackages.elm-pages: update NEW patch for 3.0.x 2023-10-05 10:37:37 -03:00
default.nix elmPackages: jailbreak aeson 1.5 in haskell.packages.ghc8107 overlay 2023-10-18 16:34:12 +02:00
fetchElmDeps.nix
makeDotElm.nix
README.md
registry.dat elm: update registry 2023-10-05 09:59:12 -03:00
update.sh

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/