darcs: depend on ghc at build time (#28500)

instead of ghc@8.2
This commit is contained in:
ilovezfs 2018-05-31 00:10:39 -07:00 committed by GitHub
parent 8cad1ac509
commit 7e2256fafc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,11 +16,15 @@ class Darcs < Formula
end
depends_on "cabal-install" => :build
depends_on "ghc@8.2" => :build
depends_on "ghc" => :build
depends_on "gmp"
def install
install_cabal_package
# GHC 8.4.x compatibility; remove the extra arguments for darcs > 2.14.0
install_cabal_package "--allow-newer=darcs:async",
"--constraint", "async < 2.3",
"--allow-newer=darcs:graphviz",
"--constraint", "graphviz < 2999.20.1"
end
test do