diff --git a/pkgs/development/compilers/ghc/9.6.6-debian-binary.nix b/pkgs/development/compilers/ghc/9.6.6-debian-binary.nix index 959fd82ff601..9fd4ad8ca1d4 100644 --- a/pkgs/development/compilers/ghc/9.6.6-debian-binary.nix +++ b/pkgs/development/compilers/ghc/9.6.6-debian-binary.nix @@ -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 = { diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index a7603825fd28..be3b1b29e884 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -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