Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Formula/e/elm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,13 @@ class Elm < Formula
end

def install
# Work around build failure due to incompatibility with newer `tls` package
# Ref: https://github.com/elm/compiler/pull/2325
args = ["--constraint=tls<2"]
odie "Check if `tls` constraint can be removed!" if version > "0.19.1"

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

test do
Expand Down