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-07 09:11:40 +0100
committerWolfgang Walther <walther@technowledgy.de>2024-02-08 14:39:03 +0100
commita2083c748faa18d883aca5ebb7aaacd6da1c461d (patch)
tree3781accd930abeb2dd433fb1dab15a5edb2f1a12 /pkgs/development/haskell-modules
parent0e182841322f67cef7e03a9b266759d426a9ba4c (diff)
downloadnixlib-a2083c748faa18d883aca5ebb7aaacd6da1c461d.tar
nixlib-a2083c748faa18d883aca5ebb7aaacd6da1c461d.tar.gz
nixlib-a2083c748faa18d883aca5ebb7aaacd6da1c461d.tar.bz2
nixlib-a2083c748faa18d883aca5ebb7aaacd6da1c461d.tar.lz
nixlib-a2083c748faa18d883aca5ebb7aaacd6da1c461d.tar.xz
nixlib-a2083c748faa18d883aca5ebb7aaacd6da1c461d.tar.zst
nixlib-a2083c748faa18d883aca5ebb7aaacd6da1c461d.zip
haskellPackages.mkDerivation: refactor to use enableFeature for stripping
Diffstat (limited to 'pkgs/development/haskell-modules')
-rw-r--r--pkgs/development/haskell-modules/generic-builder.nix5
1 files changed, 2 insertions, 3 deletions
diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix
index b772dc434e60..bc77736f6265 100644
--- a/pkgs/development/haskell-modules/generic-builder.nix
+++ b/pkgs/development/haskell-modules/generic-builder.nix
@@ -239,9 +239,8 @@ let
     "--enable-library-vanilla"  # TODO: Should this be configurable?
     (enableFeature enableLibraryForGhci "library-for-ghci")
     (enableFeature enableDeadCodeElimination "split-sections")
-  ] ++ optionals dontStrip [
-    "--disable-library-stripping"
-    "--disable-executable-stripping"
+    (enableFeature (!dontStrip) "library-stripping")
+    (enableFeature (!dontStrip) "executable-stripping")
   ] ++ optionals isGhcjs [
     "--ghcjs"
   ] ++ optionals isCross ([