Skip to content

Instantly share code, notes, and snippets.

@efroese
Forked from felixbuenemann/ghc.rb
Last active March 6, 2017 16:31
Show Gist options
  • Save efroese/886eb9be894164e09da06650afeec1e7 to your computer and use it in GitHub Desktop.
Save efroese/886eb9be894164e09da06650afeec1e7 to your computer and use it in GitHub Desktop.
Homebrew formula for official ghc 7.10.2 binaries
class Ghc < Formula
desc "Glorious Glasgow Haskell Compilation System"
homepage "https://haskell.org/ghc/"
url "https://downloads.haskell.org/~ghc/8.0.2/ghc-8.0.2-x86_64-apple-darwin.tar.xz"
sha256 "11625453e1d0686b3fa6739988f70ecac836cadc30b9f0c8b49ef9091d6118b1"
def install
system "./configure", "--prefix=#{prefix}"
ENV.deparallelize { system "make", "install" }
end
test do
(testpath/"hello.hs").write('main = putStrLn "Hello Homebrew"')
system "runghc", testpath/"hello.hs"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment