From 0cf3d56841c8b2e24743a4415f0c94d0aeb454d3 Mon Sep 17 00:00:00 2001 From: Tom McLaughlin Date: Wed, 4 Dec 2024 17:35:35 -0800 Subject: [PATCH] Try selective patching again --- flake.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 2514348..c4dd1f9 100644 --- a/flake.nix +++ b/flake.nix @@ -16,12 +16,20 @@ # Set enableNativeBignum flag on compiler (final: prev: { haskell-nix = let + shouldPatch = name: compiler: builtins.elem name [ + "ghc902" + "ghc928" + "ghc948" + "ghc966" + "ghc982" + ]; + overrideCompiler = name: compiler: (compiler.override { enableNativeBignum = true; }); in prev.lib.recursiveUpdate prev.haskell-nix { - compiler = prev.lib.mapAttrs overrideCompiler prev.haskell-nix.compiler; + compiler = prev.lib.mapAttrs overrideCompiler (prev.lib.filterAttrs shouldPatch prev.haskell-nix.compiler); }; })