fix(haskell)

This commit is contained in:
Jacob Heider 2023-10-28 00:49:32 -04:00 committed by Jacob Heider
parent fb2d01d6f0
commit 2b62f93a25

View file

@ -42,6 +42,7 @@ dependencies:
sourceware.org/libffi: 3 sourceware.org/libffi: 3
linux: linux:
github.com/numactl/numactl: ^2 github.com/numactl/numactl: ^2
gnu.org/gcc: '*'
warnings: warnings:
- vendored - vendored
@ -49,6 +50,8 @@ warnings:
build: build:
dependencies: dependencies:
curl.se: '*' curl.se: '*'
linux:
gnu.org/make: '*'
script: script:
- curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh - curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
- PATH={{prefix}}/.ghcup/bin:$PATH - PATH={{prefix}}/.ghcup/bin:$PATH
@ -57,11 +60,11 @@ build:
- run: ln -s .ghcup/* . - run: ln -s .ghcup/* .
working-directory: ${{prefix}} working-directory: ${{prefix}}
- run: | - run: |
find . -type f -print0 | xargs -0 sed -i.bak -e "s|$PKGX_DIR|\$PKGX_DIR|g" find . -type f -print0 | xargs -0 sed -i.bak -e "s|$PKGX_DIR|\${PKGX_DIR:-\$HOME/.pkgx}|g"
rm *.bak rm *.bak
working-directory: ${{prefix}}/ghc/{{version}}/bin working-directory: ${{prefix}}/ghc/{{version}}/bin
- run: | - run: |
sed -i.bak -e "s|$PKGX_DIR|\$PKGX_DIR|g" env sed -i.bak -e "s|$PKGX_DIR|\${PKGX_DIR:-\$HOME/.pkgx}|g" env
rm env.bak rm env.bak
working-directory: ${{prefix}}/.ghcup working-directory: ${{prefix}}/.ghcup
- run: | - run: |