default.nix: expose functionality: sdistTarball; add doc

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

View File

@ -6,6 +6,8 @@
, doJailbreak ? false
# Nix dependency checking, compilation and execution of test suites listed in the package description file.
, doCheck ? true
# Just produce a SDist src tarball
, sdistTarball ? false
# 2020-06-02: NOTE: enableDeadCodeElimination = true: On GHC =< 8.8.3 macOS build falls due to https://gitlab.haskell.org/ghc/ghc/issues/17283
# Disable GHC code optimizations for faster dev loops. Enable optimizations for production use or benchmarks.
, enableDeadCodeElimination ? false
@ -121,6 +123,10 @@ let
listOfSetsOfSwitchExtend =
[
{
switch = sdistTarball;
function = pkgs.haskell.lib.sdistTarball;
}
];
funcOnSwitchAppliesFunction = set: object: