From abf5583c5a964f62142025c6c350842041791183 Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Thu, 6 May 2021 10:49:57 +0200 Subject: [PATCH] haskellPackages.llvm-hs: disable tests on non-x86_64 Should fix build on aarch64, see linked issue. --- pkgs/development/haskell-modules/configuration-common.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index f5d3472e7ac..6f3114615b1 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -1846,4 +1846,10 @@ self: super: { doCheck = !pkgs.stdenv.hostPlatform.isAarch64; }; + # Tests need to lookup target triple x86_64-unknown-linux + # https://github.com/llvm-hs/llvm-hs/issues/334 + llvm-hs = overrideCabal super.llvm-hs { + doCheck = pkgs.stdenv.targetPlatform.system == "x86_64-linux"; + }; + } // import ./configuration-tensorflow.nix {inherit pkgs haskellLib;} self super