haskell.compiler.ghc966DebianBinary: add loongarch64-linux support

This commit is contained in:
darkyzhou
2026-01-04 21:54:17 +08:00
committed by Weijia Wang
parent 4a94d1f72f
commit 56091ca6fe
2 changed files with 32 additions and 0 deletions

View File

@@ -27,6 +27,32 @@ let
# GHC upstream doesn't release bindist tarballs for some platforms.
# We're using Debian's binary package, and patching it into a usable-in-Nixpkgs state.
ghcDebs = {
loongarch64-linux = {
toolPrefix = "loongarch64-linux-gnu-";
src = {
url = "http://ftp.ports.debian.org/debian-ports/pool-loong64/main/g/ghc/ghc_9.6.6-4+b1_loong64.deb";
sha256 = "f14b5e3c8e6bd233b5be8e72c369fea0644f2a804d7636f930c05b4abf77d57f";
};
exePathForLibraryCheck = null;
archSpecificLibraries = [
{
nixPackage = gmp;
fileToCheckFor = null;
}
{
nixPackage = ncurses6;
fileToCheckFor = "libtinfo.so.6";
}
{
nixPackage = numactl;
fileToCheckFor = null;
}
{
nixPackage = libffi;
fileToCheckFor = null;
}
];
};
powerpc64-linux = {
toolPrefix = "powerpc64-linux-gnu-";
src = {

View File

@@ -123,6 +123,8 @@ in
bb.packages.ghc966DebianBinary
else if stdenv.buildPlatform.isRiscV64 then
bb.packages.ghc966DebianBinary
else if stdenv.buildPlatform.isLoongArch64 then
bb.packages.ghc966DebianBinary
else
bb.packages.ghc948;
inherit (buildPackages.python3Packages) sphinx;
@@ -140,6 +142,8 @@ in
bb.packages.ghc966DebianBinary
else if stdenv.buildPlatform.isRiscV64 then
bb.packages.ghc966DebianBinary
else if stdenv.buildPlatform.isLoongArch64 then
bb.packages.ghc966DebianBinary
else if stdenv.buildPlatform.isi686 then
bb.packages.ghc948
else
@@ -159,6 +163,8 @@ in
bb.packages.ghc966DebianBinary
else if stdenv.buildPlatform.isRiscV64 then
bb.packages.ghc966DebianBinary
else if stdenv.buildPlatform.isLoongArch64 then
bb.packages.ghc966DebianBinary
else if stdenv.buildPlatform.isi686 then
bb.packages.ghc967
else