mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 05:20:00 +00:00
haskell.compiler.ghc966DebianBinary: add loongarch64-linux support
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user