mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-06 22:24:12 -05:00
* Add unbuilt ghc to updater-ghc-9.12.2 * updater-ghc-9.12.2: Build Run on linux/amd64. --------- Co-authored-by: satmandu <satmandu@users.noreply.github.com> Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
28 lines
640 B
Ruby
28 lines
640 B
Ruby
require 'package'
|
|
|
|
class Ghc < Package
|
|
description 'The Glasgow Haskell Compiler is a state-of-the-art, open source compiler and interactive environment for the functional language Haskell.'
|
|
homepage 'https://www.haskell.org/ghc/'
|
|
version '9.12.2-release'
|
|
license 'BSD'
|
|
compatibility 'x86_64'
|
|
source_url 'SKIP'
|
|
|
|
no_compile_needed
|
|
|
|
depends_on 'libtinfo'
|
|
depends_on 'stack'
|
|
|
|
def self.build
|
|
system "stack setup ghc-#{version}"
|
|
File.write 'ghc', <<~EOF
|
|
#!/bin/bash
|
|
stack exec -- ghc "$@"
|
|
EOF
|
|
end
|
|
|
|
def self.install
|
|
FileUtils.install 'ghc', "#{CREW_DEST_PREFIX}/bin/ghc", mode: 0o755
|
|
end
|
|
end
|