parent
06a6b7a897
commit
7376d000c6
1 changed files with 8 additions and 1 deletions
|
@ -19,11 +19,18 @@ class ElmFormat < Formula
|
||||||
end
|
end
|
||||||
|
|
||||||
depends_on "cabal-install" => :build
|
depends_on "cabal-install" => :build
|
||||||
depends_on "ghc@8.2" => :build
|
depends_on "ghc" => :build
|
||||||
|
|
||||||
def install
|
def install
|
||||||
(buildpath/"elm-format").install Dir["*"]
|
(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 do
|
||||||
cabal_sandbox_add_source "elm-format"
|
cabal_sandbox_add_source "elm-format"
|
||||||
cabal_install "--only-dependencies", "elm-format"
|
cabal_install "--only-dependencies", "elm-format"
|
||||||
|
|
Loading…
Reference in a new issue