From c03badc9ddb28df922bc89d3743e515cd89baab1 Mon Sep 17 00:00:00 2001 From: tegwick Date: Thu, 30 Apr 2026 22:36:40 +0200 Subject: [PATCH] fix(build): force -O0 via configureFlags.ghc-option (cabal ghc-options not reliable in postUnpack) --- flake.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flake.nix b/flake.nix index f9e7fce..fda7173 100644 --- a/flake.nix +++ b/flake.nix @@ -112,6 +112,8 @@ # Splits the monolithic Generated.Types (119 imports, ~287 MB # interface-file overflow in GHC 9.10.3) into two halves. # All awk/printf: no external file deps, no git-tracking required. + # -O0 keeps .hi files small (strips unfoldings/specialisations). + configureFlags = (old.configureFlags or "") + " --ghc-option=-O0"; postUnpack = (old.postUnpack or "") + '' _types="$sourceRoot/build/Generated/Types.hs"