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.
* 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
I never used any of these packages, and was simply the maintainer of
convenience. Dropping myself from this, someone else can pick it up if
they want to in the future.
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.
Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
This release officially supports GHC 9.6.
To avoid dependency conflicts with the elm compiler (see ansi-wl-pprint), elm-format is now built with GHC 9.8.
The GHC 9.4 elm package overrides have been removed.