default.nix: expose functionality: doHyperlinkSource; provide doc

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

View File

@ -30,9 +30,10 @@
, enableDWARFDebugging ? true
# Strip results from all debugging symbols
, doStrip ? false
# Generate hyperlinked source code for documentation using HsColour, and have Haddock documentation link to it.
, doHyperlinkSource ? false
, enableSharedLibraries ? true
, enableStaticLibraries ? false
, doHyperlinkSource ? false
# Make hybrid executable that is also a shared library
, enableSharedExecutables ? false
, justStaticExecutables ? false
@ -186,6 +187,10 @@ let
switch = generateOptparseApplicativeCompletion;
function = pkgs.haskell.lib.generateOptparseApplicativeCompletion "hnix";
}
{
switch = doHyperlinkSource;
function = pkgs.haskell.lib.doHyperlinkSource;
}
];
funcOnSwitchAppliesFunction = set: object: