Skip to content

Commit

Permalink
texmath: workaround to build with GHC 9.12
Browse files Browse the repository at this point in the history
  • Loading branch information
cho-m committed Jan 7, 2025
1 parent 487bc06 commit fed3852
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Formula/t/texmath.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ class Texmath < Formula
depends_on "ghc" => :build

def install
# Workaround to build with GHC 9.12, remove after https://github.com/haskell/aeson/pull/1126
args = ["--allow-newer=aeson:ghc-prim,aeson:template-haskell"]

system "cabal", "v2-update"
system "cabal", "v2-install", *std_cabal_v2_args, "-fexecutable"
system "cabal", "v2-install", *args, *std_cabal_v2_args, "-fexecutable"
end

test do
Expand Down

0 comments on commit fed3852

Please sign in to comment.