cabal-install: depend on ghc@8.2 at build time (#25515)

This commit is contained in:
ilovezfs 2018-03-20 12:40:58 -07:00 committed by GitHub
parent 13cf9be8e7
commit 0a56e40efe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,7 @@ class CabalInstall < Formula
sha256 "1d194910abf09edaa50a09c8c1732f2801ed7efd21b06cb982c0d90a990d5b56" => :el_capitan
end
depends_on "ghc"
depends_on "ghc@8.2"
fails_with :clang if MacOS.version <= :lion # Same as ghc.rb
@ -25,6 +25,7 @@ class CabalInstall < Formula
end
test do
ENV.prepend_path "PATH", Formula["ghc@8.2"].opt_bin
system "#{bin}/cabal", "--config-file=#{testpath}/config", "info", "cabal"
end
end