about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules
diff options
context:
space:
mode:
authorWolfgang Walther <walther@technowledgy.de>2024-02-04 14:26:20 +0100
committerWolfgang Walther <walther@technowledgy.de>2024-02-08 14:39:03 +0100
commit0e182841322f67cef7e03a9b266759d426a9ba4c (patch)
tree486891d75d535bbeab715c3e2d62217d98141c97 /pkgs/development/haskell-modules
parent9d57ec90d67eedff67fcee07acb83e18c94f8d25 (diff)
downloadnixlib-0e182841322f67cef7e03a9b266759d426a9ba4c.tar
nixlib-0e182841322f67cef7e03a9b266759d426a9ba4c.tar.gz
nixlib-0e182841322f67cef7e03a9b266759d426a9ba4c.tar.bz2
nixlib-0e182841322f67cef7e03a9b266759d426a9ba4c.tar.lz
nixlib-0e182841322f67cef7e03a9b266759d426a9ba4c.tar.xz
nixlib-0e182841322f67cef7e03a9b266759d426a9ba4c.tar.zst
nixlib-0e182841322f67cef7e03a9b266759d426a9ba4c.zip
haskellPackages.mkDerivation: pass -split-sections when cross-compiling
This works around #286285 by passing --enable-split-sections instead of ghc-options.
Diffstat (limited to 'pkgs/development/haskell-modules')
-rw-r--r--pkgs/development/haskell-modules/generic-builder.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix
index a248b5b11b22..b772dc434e60 100644
--- a/pkgs/development/haskell-modules/generic-builder.nix
+++ b/pkgs/development/haskell-modules/generic-builder.nix
@@ -238,8 +238,7 @@ let
     (enableFeature doBenchmark "benchmarks")
     "--enable-library-vanilla"  # TODO: Should this be configurable?
     (enableFeature enableLibraryForGhci "library-for-ghci")
-  ] ++ optionals (enableDeadCodeElimination) [
-     "--ghc-option=-split-sections"
+    (enableFeature enableDeadCodeElimination "split-sections")
   ] ++ optionals dontStrip [
     "--disable-library-stripping"
     "--disable-executable-stripping"