homebrew-core/Formula/haskell-stack.rb
Miëtek Bak 733742a5c2 haskell-stack: tweak formula
Simplifies the use of Haskell language support.

Downloads from GitHub instead of Hackage.

Closes Homebrew/homebrew#47273.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-12-23 12:32:47 +01:00

31 lines
867 B
Ruby

require "language/haskell"
class HaskellStack < Formula
include Language::Haskell::Cabal
desc "The Haskell Tool Stack"
homepage "http://haskellstack.org"
url "https://github.com/commercialhaskell/stack/archive/v0.1.10.1.tar.gz"
sha256 "eb53fafac78e8f84b8c3f57e29f608ef1eb9a40fd92b24aef1be5f6b422982a0"
head "https://github.com/commercialhaskell/stack.git"
bottle do
sha256 "b7f28fe00752795b45c979f53d01e1bc53e2b7cd276e4f950467062630822bcb" => :el_capitan
sha256 "138f11fba4ee1ef707680d33846106f182d86d98b7ad0beec57c622c5e171f07" => :yosemite
sha256 "b4436cdd657f1035585c750ddd270313ae25c66fcaa45e4c9264b03edeb26b07" => :mavericks
end
depends_on "ghc" => :build
depends_on "cabal-install" => :build
setup_ghc_compilers
def install
install_cabal_package
end
test do
system "#{bin}/stack", "new", "test"
end
end