Skip to content

Commit

Permalink
feat: update cabal-install
Browse files Browse the repository at this point in the history
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
  • Loading branch information
MrAdityaAlok committed Nov 15, 2022
1 parent 018fe78 commit 9dfb07a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions scripts/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ echo "Compiling: ${PKG_NAME}:${PKG_VERSION}"
clone_termux_packages() {
# clone termux-packages into container
tmp_dir="$(mktemp -d -t termux-packages-XXXXXXXXXX)"
git clone https://github.com/MrAdityaAlok/termux-packages.git "$tmp_dir/termux-packages"
git clone https://github.com/termux/termux-packages.git "$tmp_dir/termux-packages"

cd "$tmp_dir/termux-packages" && git checkout haskell-toolchain # TODO: remove after ghc is merged
cd "$tmp_dir/termux-packages"
mv -f "$tmp_dir"/termux-packages/* /home/builder/termux-packages
}

Expand Down
8 changes: 4 additions & 4 deletions scripts/compile_others.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ setup_boot_cabal() {
}

setup_ghc() {
version="8.10.7"
version="9.2.5"
tar_tmpfile="$(mktemp -t ghc.XXXXXX).tar.xz"

download "https://downloads.haskell.org/~ghc/${version}/ghc-${version}-x86_64-deb10-linux.tar.xz" \
"${tar_tmpfile}" \
a13719bca87a0d3ac0c7d4157a4e60887009a7f1a8dbe95c4759ec413e086d30
89f2df47d86a45593d6ba3fd3a44b627d100588cd59be257570dbe3f92b17c48

local ghc_extract_dir="$(mktemp -d -t ghc.XXXXXX)"
local ghc_install_dir="${ROOT}/ghc"
Expand All @@ -72,7 +72,7 @@ build_cabal() {
setup_ghc
setup_boot_cabal
SRCURL="https://github.com/haskell/cabal/archive/Cabal-v${VERSION}.tar.gz"
SHA256=dcf31e82cd85ea3236be18cc36c68058948994579ea7de18f99175821dbbcb64
SHA256=d4eff9c1fcc5212360afac8d97da83b3aff79365490a449e9c47d3988c14b6bc

tar_tmpfile="$(mktemp -t cabal.XXXXXX)"
download "${SRCURL}" "${tar_tmpfile}" "${SHA256}"
Expand All @@ -82,7 +82,7 @@ build_cabal() {
cd "${BUILDDIR}"
(
cd ./Cabal
patch -p1 <"${ROOT}"/cabal-install/correct-host-triplet.patch
patch -p1 < "${ROOT}"/cabal-install/correct-host-triplet.patch
)

mkdir -p "${BUILDDIR}/bin"
Expand Down

0 comments on commit 9dfb07a

Please sign in to comment.