parent
355063c537
commit
cdbf1d6f96
1 changed files with 19 additions and 11 deletions
|
@ -7,27 +7,27 @@ class Elm < Formula
|
|||
homepage "http://elm-lang.org"
|
||||
|
||||
stable do
|
||||
url "https://github.com/elm-lang/elm-compiler/archive/0.17.tar.gz"
|
||||
sha256 "61544685d45d9557cd768ddaa820ec0cfd5bac233b141a0d8b21fb100b06eb37"
|
||||
url "https://github.com/elm-lang/elm-compiler/archive/0.17.1.tar.gz"
|
||||
sha256 "3339b79696981b76a719c651bda18082f4ecc58e01d913b29b202f174665e387"
|
||||
|
||||
resource "elm-package" do
|
||||
url "https://github.com/elm-lang/elm-package/archive/0.17.tar.gz"
|
||||
sha256 "108a89ff1db031c0eee6ca0bdb1289415012519f0311a804bc067bd03f4c6877"
|
||||
url "https://github.com/elm-lang/elm-package/archive/0.17.1.tar.gz"
|
||||
sha256 "f7f9ede1066fe55e0f9e94906fdda0e4a0f56efeb12de8481bc5f5b96b78d33d"
|
||||
end
|
||||
|
||||
resource "elm-make" do
|
||||
url "https://github.com/elm-lang/elm-make/archive/0.17.tar.gz"
|
||||
sha256 "6a39cae249d848f823b8bc0c932240eb5d56c42c46998406168917444eca8890"
|
||||
url "https://github.com/elm-lang/elm-make/archive/0.17.1.tar.gz"
|
||||
sha256 "918316f65fc8cac1f6fe8cffa9b86aeff3d9d9a446559db43ec7c87e1dc78d95"
|
||||
end
|
||||
|
||||
resource "elm-repl" do
|
||||
url "https://github.com/elm-lang/elm-repl/archive/0.17.tar.gz"
|
||||
sha256 "be41caf0140dff8493177cfcf60cc3ff3b9d35e7e90f242818369485ef8b7f9e"
|
||||
url "https://github.com/elm-lang/elm-repl/archive/0.17.1.tar.gz"
|
||||
sha256 "01621479d798f906d90c2bff77fdefe4a76b1855241efc9a3530d4febcdee61b"
|
||||
end
|
||||
|
||||
resource "elm-reactor" do
|
||||
url "https://github.com/elm-lang/elm-reactor/archive/0.17.tar.gz"
|
||||
sha256 "278efc50756bca4f95f905e98f661c053a09d063e7140b0d11363ee14b60a79e"
|
||||
url "https://github.com/elm-lang/elm-reactor/archive/0.17.1.tar.gz"
|
||||
sha256 "0778df7e7fad897c750c29024166234cf3b4fcebe664aa52d864e0b64691e5e0"
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -41,6 +41,14 @@ class Elm < Formula
|
|||
depends_on "ghc" => :build
|
||||
depends_on "cabal-install" => :build
|
||||
|
||||
# GHC 8 compat
|
||||
# Fixes "No instance for (Num Json.Indent) arising from the literal '2'"
|
||||
# Reported 3 Jul 2016; PR subject "aeson-pretty: use Spaces with confIndent"
|
||||
patch do
|
||||
url "https://github.com/elm-lang/elm-compiler/pull/1431.patch"
|
||||
sha256 "4f11e645b4190eb3b0cbea7c641d4b28b307b811889f3b8206f45f6e53a5575b"
|
||||
end
|
||||
|
||||
def install
|
||||
# elm-compiler needs to be staged in a subdirectory for the build process to succeed
|
||||
(buildpath/"elm-compiler").install Dir["*"]
|
||||
|
@ -48,7 +56,7 @@ class Elm < Formula
|
|||
# GHC 8 compat
|
||||
# Fixes "cabal: Could not resolve dependencies"
|
||||
# Reported 25 May 2016: https://github.com/elm-lang/elm-compiler/issues/1397
|
||||
(buildpath/"cabal.config").write("allow-newer: aeson,base,HTTP,time,transformers\n")
|
||||
(buildpath/"cabal.config").write("allow-newer: base,time,transformers,HTTP\n")
|
||||
|
||||
extras_no_reactor = ["elm-package", "elm-make", "elm-repl"]
|
||||
extras = extras_no_reactor + ["elm-reactor"]
|
||||
|
|
Loading…
Reference in a new issue