1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

haskellPackages.mkDerivation: refactor to use enableFeature for stripping

This commit is contained in:
Wolfgang Walther 2024-02-07 09:11:40 +01:00
parent 0e18284132
commit a2083c748f
No known key found for this signature in database
GPG key ID: B39893FA5F65CAE1

View file

@ -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 ([