diff --git a/overlays/default.nix b/overlays/default.nix index badf84b..dab83de 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -5,6 +5,14 @@ let in { nixpkgs.overlays = if isUnstable then [ + (_: super: { + elmPackages = super.elmPackages // { + elm = + super.elmPackages.elm.override { + patches = [ ./elm-no-color.diff ]; + }; + }; + }) (import ./jetbrains.nix) (import ./tidal-hifi.nix { inherit lib; }) openssh diff --git a/overlays/elm-no-color.diff b/overlays/elm-no-color.diff new file mode 100644 index 0000000..1133f08 --- /dev/null +++ b/overlays/elm-no-color.diff @@ -0,0 +1,12 @@ +diff --git a/compiler/src/Reporting/Doc.hs b/compiler/src/Reporting/Doc.hs +index 26c15517..95dbae4e 100644 +--- a/compiler/src/Reporting/Doc.hs ++++ b/compiler/src/Reporting/Doc.hs +@@ -404,7 +404,6 @@ encodeChunks (Style bold underline color) revChunks = + E.object + [ "bold" ==> E.bool bold + , "underline" ==> E.bool underline +- , "color" ==> maybe E.null encodeColor color + , "string" ==> E.chars chars + ] +