fix(haskell)

closes #4796
This commit is contained in:
Jacob Heider 2024-01-09 17:38:45 -05:00 committed by Jacob Heider
parent 38128e4716
commit f6dc3a927e

View file

@ -59,17 +59,13 @@ build:
- ghcup set ghc {{version}} - ghcup set ghc {{version}}
- run: ln -s .ghcup/* . - run: ln -s .ghcup/* .
working-directory: ${{prefix}} working-directory: ${{prefix}}
- run: | - run: find . -type f -print0 | xargs -0 sed -i -e "s|$PKGX_DIR|\${PKGX_DIR:-\$HOME/.pkgx}|g" -e 's/\+brewing//g'
find . -type f -print0 | xargs -0 sed -i.bak -e "s|$PKGX_DIR|\${PKGX_DIR:-\$HOME/.pkgx}|g"
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:-\$HOME/.pkgx}|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: find . -type f -name \*.conf -print0 | xargs -0 sed -i -e 's|{{prefix}}|${pkgroot}/../../../../..|g' -e 's/\+brewing//g'
find . -type f -name \*.conf -print0 | xargs -0 sed -i.bak -e 's|{{prefix}}|${pkgroot}/../../../../..|g'
find . -type f -name \*.conf.bak -delete
working-directory: ${{prefix}}/ghc/{{version}}/lib/ghc-{{version}}/package.conf.d working-directory: ${{prefix}}/ghc/{{version}}/lib/ghc-{{version}}/package.conf.d
if: <9.4 if: <9.4
env: env: