diff --git a/srcpkgs/ghc-bin/template b/srcpkgs/ghc-bin/template index d05dcd821f3..996be0fb5f5 100644 --- a/srcpkgs/ghc-bin/template +++ b/srcpkgs/ghc-bin/template @@ -2,7 +2,7 @@ pkgname=ghc-bin version=9.0.2 revision=1 -archs="i686 x86_64* ppc64le* ppc64" +archs="i686 x86_64* ppc64le* ppc64 aarch64*" wrksrc="ghc-${version%[!0-9]}" hostmakedepends="perl libffi libnuma" depends="ncurses perl gcc libffi-devel gmp-devel" @@ -39,6 +39,16 @@ ppc64) distfiles="https://alpha.de.repo.voidlinux.org/distfiles/ghc-${version}-powerpc64-void-linux.tar.xz" checksum=6eb8684fdbede0cded7e3f7b93574b968f5f66dd2fcd4ec30ac5f0c402af6602 ;; +aarch64) + distfiles="https://alpha.de.repo.voidlinux.org/distfiles/ghc-${version}-aarch64-void-linux.tar.xz" + checksum=44a20a896246dce64392b7d0feedd0a28a9d733245a803e95dbe4b4b7e15b4fd + depends+=" llvm" + ;; +aarch64-musl) + distfiles="https://alpha.de.repo.voidlinux.org/distfiles/ghc-${version}-aarch64-void-linux-musl.tar.xz" + checksum=de98e2ff33a25cb32a28c738066fecacb736a33cac12688876eec4eb96d88607 + depends+=" llvm" + ;; *) broken="No distfiles available for this target" ;; diff --git a/srcpkgs/ghc/template b/srcpkgs/ghc/template index c4bbb3e4e3b..d0b1600987b 100644 --- a/srcpkgs/ghc/template +++ b/srcpkgs/ghc/template @@ -54,6 +54,14 @@ elif [ "${XBPS_MACHINE%-*}" != "${XBPS_TARGET_MACHINE%-*}" ]; then configure_args+=" --host=${XBPS_TRIPLET} --target=${XBPS_CROSS_TRIPLET}" fi +case "$XBPS_TARGET_MACHINE" in +aarch64*) + # GHC uses LLVM to generate code on aarch64 + hostmakedepends+=" llvm" + depends+=" llvm" + ;; +esac + # Recent safe to use tarball # GHC's bundled tarball is from 2017, buggy on some archs _ffi_rev=4d6d2866ae43e55325e8ee96561221804602cd7a