13 Commits

Author SHA1 Message Date
Matt McHenry
bab9648f11 elmPackages.elm: 0.19.1 -> 0.19.2
two interesting changes here:

first, 0.19.2 needs to be built with GHC 9.8 rather than GHC 9.6.  So,
we move it and ansi-wl-pprint from packages/ghc9_6/ to
packages/ghc9_8/, adding the elmPkgs attributes to
packages/ghc9_8/default.nix.  however, elm-format does *not* want the
older ansi-wl-pprint, so we push its use down inside the 'callPackage
./elm {}' scope.

second, we're picking up a newer version of ansi-terminal than
upstream uses, which has introduced a couple of new
underlining-related constructors.  so, we patch in cases for them
where necessary.  (I was a bit surprised that the existing
SingleUnderline and DoubleUnderline cases in the 'isUnderline'
function did not both evaluate to 'True', so I'm taking my best guess
as to the real intent here; easy enough to fix if we discover these
new cases should be 'True'.)

we also manually preserve the 'description' attribute in
elm/default.nix. (the update script clobbered it.)

other than the above, the update script as modified here produced all
these changes.
2026-07-12 17:12:26 -04:00
Matt McHenry
2e5f6016ec elmPackages: clean up the update script
* activate the 'errexit' and 'nounset' bash safety nets

* fix the path to the root shell.nix (was missing one ../)

* also specify that nixpkgs is at that same path

* run the formatter on all the nix code generated by the update script

* use a pure nix shell, which requires that we add explicit dependencies on:
  * nix
  * cacert
  * nixfmt

this version of the script produces the changes to the elm-format
expressions: a newer license format and use of the hash of the '0.8.8'
signed tag itself rather than the hash of the tagged commit (note the
checksum of the src derivation does not change).

this is in preparation for the 0.19.2 update
2026-07-12 17:03:49 -04:00
Sander
e6ef81d433 elmPackages: update and run the update.sh script
- Vendored the post-patch script for elm-format.
- Updated `update.sh` and committed the changes.
2025-06-23 19:20:09 +02:00
Wolfgang Walther
9404d8d57e elmPackages.elm-coverage: drop
This allows dropping elmi-to-json, which in turn allows dropping GHC
8.10.7. Along with elmi-to-json, we can remove the patchBinwrap utility,
which was only used for that purpose.

Along with elm-coverage, we can also drop elm-instrument, which was only
used as a dependency of the former, and it's reverse dependency indents.
2025-06-12 13:10:36 +02:00
PedroHLC
13b12a9281 elm: include all cabal2nix in update script 2024-03-28 13:39:28 -03:00
PedroHLC
ae5eab1bf1 elm: refactor file structure 2024-03-28 13:28:40 -03:00
Marek Fajkus
0d818adfdf elmPackages.elm: fix compilation with stackage LTS 22.4 2024-01-17 11:42:29 +01:00
Marek Fajkus
6f3ec49a11 Move comment and fix elmLib 2024-01-06 14:31:32 +01:00
Marek Fajkus
9108298010 fix build 2024-01-06 14:21:12 +01:00
Domen Kožar
5235b19045 Elm: 0.19.0 -> 0.19.1 2019-10-21 21:32:35 +02:00
Domen Kožar
6da4584acf Elm: automate packaging with elm2nix
- rewrite documentation
- automate whole process into update.sh
- remove all legacy snippets
2019-01-03 16:37:09 +00:00
Aaron VonderHaar
67f58eee5e elm-format: 0.8.0 -> 0.8.1 2018-10-03 20:30:35 +01:00
Domen Kožar
7c542d0c86 Elm: 0.19 builds with elm-format 2018-08-26 23:20:41 +01:00