haskell-stack 1.7.1

depend on ghc at build time instead of ghc@8.2

Closes #27201.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
ilovezfs 2018-04-27 21:27:10 -07:00
parent 7612a4a7a3
commit 51881fba74

View file

@ -5,9 +5,9 @@ class HaskellStack < Formula
desc "The Haskell Tool Stack"
homepage "https://haskellstack.org/"
url "https://github.com/commercialhaskell/stack/releases/download/v1.6.5/stack-1.6.5-sdist-1.tar.gz"
version "1.6.5"
sha256 "71d02e2a3b507dcde7596f51d9a342865020aa74ebe79847d7bf815e1c7f2abb"
url "https://github.com/commercialhaskell/stack/releases/download/v1.7.1/stack-1.7.1-sdist-1.tar.gz"
version "1.7.1"
sha256 "a548fb549b2b1e539e257732596508e4c3d43e3a9d62bd22ecc19dda67c30ce6"
head "https://github.com/commercialhaskell/stack.git"
bottle do
@ -20,13 +20,13 @@ class HaskellStack < Formula
option "without-bootstrap", "Don't bootstrap a stage 2 stack"
depends_on "cabal-install" => :build
depends_on "ghc@8.2" => :build
depends_on "ghc" => :build
# Remove when stack.yaml uses GHC 8.2.x
# Remove when stack.yaml uses GHC 8.4.x
resource "stack_nightly_yaml" do
url "https://raw.githubusercontent.com/commercialhaskell/stack/v1.6.5/stack-nightly.yaml"
version "1.6.5"
sha256 "07ef0e20d4ba52a02d94f9809ffbd6980fbc57c66316620ba6a4cacfa4c9a7dd"
url "https://raw.githubusercontent.com/commercialhaskell/stack/v1.7.1/stack-nightly.yaml"
version "1.7.1"
sha256 "08cf289b53983b72d88f48004b58a3154728125f7cff174c0364f1dd936c607e"
end
def install
@ -43,8 +43,11 @@ class HaskellStack < Formula
jobs = ENV.make_jobs
ENV.deparallelize
system "stack", "-j#{jobs}", "--stack-yaml=stack-nightly.yaml", "setup"
system "stack", "-j#{jobs}", "--local-bin-path=#{bin}", "install"
system "stack", "-j#{jobs}", "--stack-yaml=stack-nightly.yaml",
"--system-ghc", "--no-install-ghc", "setup"
system "stack", "-j#{jobs}", "--stack-yaml=stack-nightly.yaml",
"--system-ghc", "--no-install-ghc", "--local-bin-path=#{bin}",
"install"
else
install_cabal_package
end