From 0211fbc317a0198f2118cf410c43cd5239e5642d Mon Sep 17 00:00:00 2001 From: Michka Popoff Date: Wed, 5 Aug 2020 22:52:37 +0200 Subject: [PATCH] ghc@8.8: add linux resource --- Formula/ghc@8.8.rb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Formula/ghc@8.8.rb b/Formula/ghc@8.8.rb index f53b734e693..8ab7947a227 100644 --- a/Formula/ghc@8.8.rb +++ b/Formula/ghc@8.8.rb @@ -31,8 +31,15 @@ class GhcAT88 < Formula # "This is a distribution for Mac OS X, 10.7 or later." # A binary of ghc is needed to bootstrap ghc resource "binary" do - url "https://downloads.haskell.org/~ghc/8.8.3/ghc-8.8.3-x86_64-apple-darwin.tar.xz" - sha256 "7016de90dd226b06fc79d0759c5d4c83c2ab01d8c678905442c28bd948dbb782" + on_macos do + url "https://downloads.haskell.org/~ghc/8.8.3/ghc-8.8.3-x86_64-apple-darwin.tar.xz" + sha256 "7016de90dd226b06fc79d0759c5d4c83c2ab01d8c678905442c28bd948dbb782" + end + + on_linux do + url "https://downloads.haskell.org/~ghc/8.8.3/ghc-8.8.3-x86_64-deb8-linux.tar.xz" + sha256 "92b9fadc442976968d2c190c14e000d737240a7d721581cda8d8741b7bd402f0" + end end def install