elm-format: depend on ghc at build time (#25587)

instead of ghc@8.2
This commit is contained in:
ilovezfs 2018-03-21 08:20:29 -07:00 committed by GitHub
parent 06a6b7a897
commit 7376d000c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,11 +19,18 @@ class ElmFormat < Formula
end
depends_on "cabal-install" => :build
depends_on "ghc@8.2" => :build
depends_on "ghc" => :build
def install
(buildpath/"elm-format").install Dir["*"]
# GHC 8.4.1 compat
# Reported upstream 21 Mar 2018 https://github.com/avh4/elm-format/issues/464
(buildpath/"cabal.config").write <<~EOS
allow-newer: elm-format:free, elm-format:optparse-applicative
constraints: free < 6, optparse-applicative < 0.15
EOS
cabal_sandbox do
cabal_sandbox_add_source "elm-format"
cabal_install "--only-dependencies", "elm-format"