diff --git a/Formula/ghc@8.6.rb b/Formula/ghc@8.6.rb index 0cf347d04bc..af492c0ce18 100644 --- a/Formula/ghc@8.6.rb +++ b/Formula/ghc@8.6.rb @@ -32,8 +32,15 @@ class GhcAT86 < Formula # https://www.haskell.org/ghc/download_ghc_8_6_5#macosx_x86_64 # "This is a distribution for Mac OS X, 10.7 or later." resource "binary" do - url "https://downloads.haskell.org/~ghc/8.6.5/ghc-8.6.5-x86_64-apple-darwin.tar.xz" - sha256 "dfc1bdb1d303a87a8552aa17f5b080e61351f2823c2b99071ec23d0837422169" + on_macos do + url "https://downloads.haskell.org/~ghc/8.6.5/ghc-8.6.5-x86_64-apple-darwin.tar.xz" + sha256 "dfc1bdb1d303a87a8552aa17f5b080e61351f2823c2b99071ec23d0837422169" + end + + on_linux do + url "https://downloads.haskell.org/~ghc/8.6.5/ghc-8.6.5-x86_64-deb8-linux.tar.xz" + sha256 "c419fd0aa9065fe4d2eb9a248e323860c696ddf3859749ca96a84938aee49107" + end end # Fix for Catalina compatibility https://gitlab.haskell.org/ghc/ghc/issues/17353