Skip to content

Commit ffac2e7

Browse files
committed
ghc 9.12.1
1 parent 6cd3e72 commit ffac2e7

File tree

2 files changed

+21
-29
lines changed

2 files changed

+21
-29
lines changed

Aliases/[email protected]

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../Formula/g/ghc.rb

Formula/g/ghc.rb

+20-29
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
class Ghc < Formula
22
desc "Glorious Glasgow Haskell Compilation System"
33
homepage "https://haskell.org/ghc/"
4+
url "https://downloads.haskell.org/~ghc/9.12.1/ghc-9.12.1-src.tar.xz"
5+
sha256 "4a7410bdeec70f75717087b8f94bf5a6598fd61b3a0e1f8501d8f10be1492754"
46
# We build bundled copies of libffi and GMP so GHC inherits the licenses
57
license all_of: [
68
"BSD-3-Clause",
@@ -9,17 +11,6 @@ class Ghc < Formula
911
]
1012
head "https://gitlab.haskell.org/ghc/ghc.git", branch: "master"
1113

12-
stable do
13-
url "https://downloads.haskell.org/~ghc/9.10.1/ghc-9.10.1-src.tar.xz"
14-
sha256 "bf386a302d4ee054791ffd51748900f15d71760fd199157922d120cc1f89e2f7"
15-
16-
# Backport fix to avoid unnecessary `alex` dependency
17-
patch do
18-
url "https://gitlab.haskell.org/ghc/ghc/-/commit/aba2c9d4728262cd9a2d711eded9050ac131c6c1.diff"
19-
sha256 "152cd2711a7e103bbf0526dc62e51b437e6c60e26149f2cd50ccafaa057316ce"
20-
end
21-
end
22-
2314
livecheck do
2415
url "https://www.haskell.org/ghc/download.html"
2516
regex(/href=.*?download[._-]ghc[._-][^"' >]+?\.html[^>]*?>\s*?v?(\d+(?:\.\d+)+)\s*?</i)
@@ -39,7 +30,7 @@ class Ghc < Formula
3930

4031
depends_on "autoconf" => :build
4132
depends_on "automake" => :build
42-
depends_on "python@3.12" => :build
33+
depends_on "python@3.13" => :build
4334
depends_on "sphinx-doc" => :build
4435
depends_on "xz" => :build
4536

@@ -59,45 +50,45 @@ class Ghc < Formula
5950
resource "binary" do
6051
on_macos do
6152
on_arm do
62-
url "https://downloads.haskell.org/~ghc/9.8.2/ghc-9.8.2-aarch64-apple-darwin.tar.xz"
63-
sha256 "67be089dedbe599d911efd8f82e4f9a19225761a3872be74dfd4b5a557fb8e1a"
53+
url "https://downloads.haskell.org/~ghc/9.10.1/ghc-9.10.1-aarch64-apple-darwin.tar.xz"
54+
sha256 "ffaf83b5d7a8b2c04920c6e3909c0be21dde27baf380d095fa27e840a3a2e804"
6455
end
6556
on_intel do
66-
url "https://downloads.haskell.org/~ghc/9.8.2/ghc-9.8.2-x86_64-apple-darwin.tar.xz"
67-
sha256 "64e8cca6310443cd6de8255edcf391d937829792e701167f7e5fb234f7150078"
57+
url "https://downloads.haskell.org/~ghc/9.10.1/ghc-9.10.1-x86_64-apple-darwin.tar.xz"
58+
sha256 "8cf22188930e10d7ac5270d425e21a3dab606af73a655493639345200c650be9"
6859
end
6960
end
7061
on_linux do
7162
on_arm do
72-
url "https://downloads.haskell.org/~ghc/9.8.2/ghc-9.8.2-aarch64-deb10-linux.tar.xz"
73-
sha256 "9a3776fd8dc02f95b751f0e44823d6727dea2c212857e2c5c5f6a38a034d1575"
63+
url "https://downloads.haskell.org/~ghc/9.10.1/ghc-9.10.1-aarch64-deb10-linux.tar.xz"
64+
sha256 "e6df50e62b696e3a8b759670fc79207ccc26e88a79a047561ca1ccb8846157dd"
7465
end
7566
on_intel do
76-
url "https://downloads.haskell.org/~ghc/9.8.2/ghc-9.8.2-x86_64-ubuntu20_04-linux.tar.xz"
77-
sha256 "a65a4726203c606b58a7f6b714a576e7d81390158c8afa0dece3841a4c602de2"
67+
url "https://downloads.haskell.org/~ghc/9.10.1/ghc-9.10.1-x86_64-ubuntu20_04-linux.tar.xz"
68+
sha256 "ae3be406fdb73bd2b0c22baada77a8ff2f8cde6220dd591dc24541cfe9d895eb"
7869
end
7970
end
8071
end
8172

8273
resource "cabal-install" do
8374
on_macos do
8475
on_arm do
85-
url "https://downloads.haskell.org/~cabal/cabal-install-3.12.1.0/cabal-install-3.12.1.0-aarch64-darwin.tar.xz"
86-
sha256 "9c165ca9a2e593b12dbb0eca92c0b04f8d1c259871742d7e9afc352364fe7a3f"
76+
url "https://downloads.haskell.org/~cabal/cabal-install-3.14.1.1/cabal-install-3.14.1.1-aarch64-darwin.tar.xz"
77+
sha256 "bd40920fb3d5bcf3d78ce93445039ba43bc5edf769c52234223f25b83e3cc682"
8778
end
8879
on_intel do
89-
url "https://downloads.haskell.org/~cabal/cabal-install-3.12.1.0/cabal-install-3.12.1.0-x86_64-darwin.tar.xz"
90-
sha256 "e89392429f59bbcfaf07e1164e55bc63bba8e5c788afe43c94e00b515c1578af"
80+
url "https://downloads.haskell.org/~cabal/cabal-install-3.14.1.1/cabal-install-3.14.1.1-x86_64-darwin.tar.xz"
81+
sha256 "3690d8f7aa368141574f9eaf8e75bc26932ed7b422f5ade107d6972b3b72532f"
9182
end
9283
end
9384
on_linux do
9485
on_arm do
95-
url "https://downloads.haskell.org/~cabal/cabal-install-3.12.1.0/cabal-install-3.12.1.0-aarch64-linux-deb10.tar.xz"
96-
sha256 "c01f2e0b3ba1fe4104cf2933ee18558a9b81d85831a145e8aba33fa172c7c618"
86+
url "https://downloads.haskell.org/~cabal/cabal-install-3.14.1.1/cabal-install-3.14.1.1-aarch64-linux-deb10.tar.xz"
87+
sha256 "bf5fbe5d911c771b1601b80b00e9f9fb3db7f800258204322e411fdf1661a866"
9788
end
9889
on_intel do
99-
url "https://downloads.haskell.org/~cabal/cabal-install-3.12.1.0/cabal-install-3.12.1.0-x86_64-linux-ubuntu20_04.tar.xz"
100-
sha256 "3724f2aa22f330c5e6605978f3dd9adee4e052866321a8dd222944cd178c3c24"
90+
url "https://downloads.haskell.org/~cabal/cabal-install-3.14.1.1/cabal-install-3.14.1.1-x86_64-linux-ubuntu20_04.tar.xz"
91+
sha256 "91d2b65907e95462396fa96892ebbd903861fc07b5cb74993c612e33d4c0cc65"
10192
end
10293
end
10394
end
@@ -113,7 +104,7 @@ def install
113104
ENV["CC"] = ENV["ac_cv_path_CC"] = OS.linux? ? "cc" : ENV.cc
114105
ENV["CXX"] = ENV["ac_cv_path_CXX"] = OS.linux? ? "c++" : ENV.cxx
115106
ENV["LD"] = ENV["MergeObjsCmd"] = "ld"
116-
ENV["PYTHON"] = which("python3.12")
107+
ENV["PYTHON"] = which("python3.13")
117108

118109
binary = buildpath/"binary"
119110
resource("binary").stage do

0 commit comments

Comments
 (0)