Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

elm: deprecate cabal-v1 installation #59343

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions Formula/elm.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
require "language/haskell"

class Elm < Formula
include Language::Haskell::Cabal

desc "Functional programming language for building browser-based GUIs"
homepage "https://elm-lang.org"
url "https://github.com/elm/compiler/archive/0.19.1.tar.gz"
sha256 "aa161caca775cef1bbb04bcdeb4471d3aabcf87b6d9d9d5b0d62d3052e8250b1"
license "BSD-3-Clause"
revision 1

bottle do
cellar :any_skip_relocation
Expand All @@ -26,10 +23,9 @@ def install
# elm-compiler needs to be staged in a subdirectory for the build process to succeed
(buildpath/"elm-compiler").install Dir["*"]

cabal_sandbox do
cabal_sandbox_add_source "elm-compiler"
cabal_install "--only-dependencies", "--force-reinstalls", "elm"
cabal_install "--prefix=#{prefix}", "elm"
cd "elm-compiler" do
system "cabal", "v2-update"
system "cabal", "v2-install", *std_cabal_v2_args, "-v"
end
end

Expand Down