default.nix: expose functionality: enableDWARFDebugging; add doc

M  default.nix
This commit is contained in:
Anton-Latukha 2020-06-03 20:38:58 +03:00
parent e4b75b2e74
commit 1668607c13
No known key found for this signature in database
GPG Key ID: 3D84C07E91802E41
1 changed files with 6 additions and 0 deletions

View File

@ -26,6 +26,8 @@
# Enables GHC optimizations for production use, without optimizations compilation is way faster
, doOptimize ? false
, doStrict ? false
# Include DWARF debugging information & abilities
, enableDWARFDebugging ? true
# Strip results from all debugging symbols
, doStrip ? false
, enableSharedLibraries ? true
@ -148,6 +150,10 @@ let
switch = disableOptimization;
function = pkgs.haskell.lib.disableOptimization;
}
{
switch = enableDWARFDebugging;
function = pkgs.haskell.lib.enableDWARFDebugging;
}
{
switch = linkWithGold;
function = pkgs.haskell.lib.linkWithGold;