Skip to content

Commit

Permalink
Try selective patching again
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjm committed Dec 5, 2024
1 parent 33122e3 commit 0cf3d56
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
})

Expand Down

0 comments on commit 0cf3d56

Please sign in to comment.