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
|
|
|
sourceware.org/libffi: 3
|
2023-08-23 02:14:25 +03:00
|
|
|
linux:
|
|
|
|
github.com/numactl/numactl: ^2
|
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
|
|
|
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-10-02 04:27:27 +03:00
|
|
|
find . -type f -print0 | xargs -0 sed -i.bak -e "s|$PKGX_DIR|\$PKGX_DIR|g"
|
|
|
|
rm *.bak
|
2023-08-22 01:04:58 +03:00
|
|
|
working-directory: ${{prefix}}/ghc/{{version}}/bin
|
2023-08-23 02:14:25 +03:00
|
|
|
- run: |
|
2023-10-02 04:27:27 +03:00
|
|
|
sed -i.bak -e "s|$PKGX_DIR|\$PKGX_DIR|g" env
|
|
|
|
rm env.bak
|
2023-08-23 02:14:25 +03:00
|
|
|
working-directory: ${{prefix}}/.ghcup
|
|
|
|
- run: |
|
2023-10-02 04:27:27 +03:00
|
|
|
find . -type f -name \*.conf -print0 | xargs -0 sed -i.bak -e 's|{{prefix}}|${pkgroot}/../../../../..|g'
|
|
|
|
find . -type f -name \*.conf.bak -delete
|
2023-08-23 02:14:25 +03:00
|
|
|
working-directory: ${{prefix}}/ghc/{{version}}/lib/ghc-{{version}}/package.conf.d
|
|
|
|
if: <9.4
|
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:
|
2023-08-23 02:14:25 +03:00
|
|
|
- ghc-pkg recache
|
|
|
|
- ghc-pkg check
|
2023-08-22 01:04:58 +03:00
|
|
|
- test "$(runghc $FIXTURE)" = "Hello World"
|
2023-10-02 04:27:27 +03:00
|
|
|
fixture: main = putStrLn "Hello World"
|