From 9d1b1aa7b9cef1fa7de7d1aac4b06c5dfa718573 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 8 Sep 2025 02:39:38 +0100 Subject: [PATCH] =?UTF-8?q?haskellPackages.spaceprobe:=20don=E2=80=99t=20f?= =?UTF-8?q?orce=20the=20LLVM=20backend?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/development/haskell-modules/configuration-nix.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix index d08240cacf56..cf9dd3c715f5 100644 --- a/pkgs/development/haskell-modules/configuration-nix.nix +++ b/pkgs/development/haskell-modules/configuration-nix.nix @@ -523,8 +523,14 @@ builtins.intersectAttrs super { ) ); - # Needs help finding LLVM. - spaceprobe = addBuildTool self.buildHaskellPackages.llvmPackages.llvm super.spaceprobe; + # Forces the LLVM backend; upstream signalled intent to remove this + # in 2017: . + spaceprobe = overrideCabal (drv: { + postPatch = '' + substituteInPlace spaceprobe.cabal \ + --replace-fail '-fllvm ' "" + ''; + }) super.spaceprobe; # Tries to run GUI in tests leksah = dontCheck (