2023-08-22 01:04:58 +03:00
|
|
|
distributable: ~
|
2022-08-23 00:33:05 +03:00
|
|
|
|
|
|
|
versions:
|
2023-04-10 18:43:01 +03:00
|
|
|
github: ghc/ghc/tags
|
|
|
|
strip:
|
|
|
|
- /^ghc-/
|
|
|
|
- /-release$/
|
2022-08-23 00:33:05 +03:00
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/ghc
|
2023-08-22 01:04:58 +03:00
|
|
|
- bin/ghc-{{version.marketing}}
|
|
|
|
- bin/ghc-{{version}}
|
2022-08-23 00:33:05 +03:00
|
|
|
- bin/ghc-pkg
|
2023-08-22 01:04:58 +03:00
|
|
|
- bin/ghc-pkg-{{version.marketing}}
|
|
|
|
- bin/ghc-pkg-{{version}}
|
2022-08-23 00:33:05 +03:00
|
|
|
- bin/ghci
|
2023-08-22 01:04:58 +03:00
|
|
|
- bin/ghci-{{version.marketing}}
|
|
|
|
- bin/ghci-{{version}}
|
|
|
|
- bin/ghcup
|
2022-08-23 00:33:05 +03:00
|
|
|
- bin/haddock
|
2023-08-22 01:04:58 +03:00
|
|
|
- bin/haddock-{{version.marketing}}
|
|
|
|
- bin/haddock-{{version}}
|
2022-08-23 00:33:05 +03:00
|
|
|
- bin/hp2ps
|
2023-08-22 01:04:58 +03:00
|
|
|
- bin/hp2ps-{{version.marketing}}
|
|
|
|
- bin/hp2ps-{{version}}
|
2022-08-23 00:33:05 +03:00
|
|
|
- bin/hpc
|
2023-08-22 01:04:58 +03:00
|
|
|
- bin/hpc-{{version.marketing}}
|
|
|
|
- bin/hpc-{{version}}
|
2022-08-23 00:33:05 +03:00
|
|
|
- bin/hsc2hs
|
2023-08-22 01:04:58 +03:00
|
|
|
- bin/hsc2hs-{{version.marketing}}
|
|
|
|
- bin/hsc2hs-{{version}}
|
2022-08-23 00:33:05 +03:00
|
|
|
- bin/runghc
|
2023-08-22 01:04:58 +03:00
|
|
|
- bin/runghc-{{version.marketing}}
|
|
|
|
- bin/runghc-{{version}}
|
2022-08-23 00:33:05 +03:00
|
|
|
- bin/runhaskell
|
2023-08-22 01:04:58 +03:00
|
|
|
- bin/runhaskell-{{version.marketing}}
|
|
|
|
- bin/runhaskell-{{version}}
|
|
|
|
|
2022-08-23 00:33:05 +03:00
|
|
|
|
|
|
|
dependencies:
|
|
|
|
gnu.org/gmp: 6
|
|
|
|
invisible-island.net/ncurses: 6
|
2022-12-01 16:05:12 +03:00
|
|
|
tea.xyz/gx/cc: 'c99' # ghc uses this during builds
|
|
|
|
sourceware.org/libffi: 3
|
2022-08-23 00:33:05 +03:00
|
|
|
|
2023-08-22 01:04:58 +03:00
|
|
|
warnings:
|
|
|
|
- vendored
|
|
|
|
|
2022-08-23 00:33:05 +03:00
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
curl.se: '*'
|
2023-08-22 01:04:58 +03:00
|
|
|
tea.xyz/gx/make: '*'
|
|
|
|
script:
|
2023-08-22 01:46:43 +03:00
|
|
|
- curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
|
|
|
|
- PATH={{prefix}}/.ghcup/bin:$PATH
|
|
|
|
- ghcup install ghc {{version}}
|
|
|
|
- ghcup set ghc {{version}}
|
|
|
|
- run: ln -s .ghcup/* .
|
|
|
|
working-directory: ${{prefix}}
|
2023-08-22 01:04:58 +03:00
|
|
|
- run: |
|
2023-08-22 01:35:33 +03:00
|
|
|
find . -type f -print0 | xargs -0 sed -i.bak -e "s|$TEA_PREFIX|\$TEA_PREFIX|g"
|
2023-08-22 01:04:58 +03:00
|
|
|
rm *.bak
|
|
|
|
working-directory: ${{prefix}}/ghc/{{version}}/bin
|
2022-12-01 16:05:12 +03:00
|
|
|
env:
|
|
|
|
BOOTSTRAP_HASKELL_NONINTERACTIVE: 1
|
2023-08-22 01:04:58 +03:00
|
|
|
BOOTSTRAP_HASKELL_NO_UPGRADE: 1
|
|
|
|
BOOTSTRAP_HASKELL_MINIMAL: 1
|
|
|
|
GHCUP_INSTALL_BASE_PREFIX: ${{prefix}}
|
|
|
|
GHCUP_SKIP_UPDATE_CHECK: 1
|
2022-08-23 00:33:05 +03:00
|
|
|
|
2022-09-02 18:00:17 +03:00
|
|
|
test:
|
2023-08-22 01:04:58 +03:00
|
|
|
script:
|
|
|
|
- test "$(runghc $FIXTURE)" = "Hello World"
|
2022-09-02 18:00:17 +03:00
|
|
|
fixture:
|
|
|
|
main = putStrLn "Hello World"
|