homebrew-core/Formula/haskell-stack.rb

36 lines
995 B
Ruby
Raw Normal View History

require "language/haskell"
class HaskellStack < Formula
include Language::Haskell::Cabal
desc "The Haskell Tool Stack"
homepage "https://github.com/commercialhaskell/stack"
url "https://hackage.haskell.org/package/stack-0.1.8.0/stack-0.1.8.0.tar.gz"
sha256 "89bca19a39f3148daa55dd51bcee28c9f8aa362732c915dd25a85c7a7c664338"
head "https://github.com/commercialhaskell/stack.git"
2015-08-01 05:40:10 +00:00
bottle do
2015-11-20 21:24:44 +00:00
sha256 "459140f201218d7e5e9fac9f48e5b9b26ba040bba49e4093e8e3687c506f7e73" => :el_capitan
sha256 "7c45454f2f0472254bf2405f045541696c02ce907f0a1f9ef0076a31487499b3" => :yosemite
sha256 "a48a8e370dd5efab8a392be57fcac827bfc62312a45793feba6630b1af387a79" => :mavericks
2015-08-01 05:40:10 +00:00
end
depends_on "ghc" => :build
depends_on "cabal-install" => :build
setup_ghc_compilers
def install
cabal_sandbox do
cabal_install "--only-dependencies"
cabal_install "--prefix=#{prefix}"
end
cabal_clean_lib
end
test do
system "#{bin}/stack", "new", "test"
end
end