We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4ebefca + 1fe5afc commit cd91c7cCopy full SHA for cd91c7c
modules/hooks.nix
@@ -3392,9 +3392,15 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.ormol
3392
entry =
3393
let
3394
inherit (hooks.statix) package settings;
3395
+ mkOptionName = k:
3396
+ if builtins.stringLength k == 1
3397
+ then "-${k}"
3398
+ else "--${k}";
3399
options = lib.cli.toGNUCommandLineShell
3400
{
- mkList = name: value: [ name ] ++ lib.unique value;
3401
+ # instead of repeating the option name for each element,
3402
+ # create a single option with a space-separated list of unique values.
3403
+ mkList = k: v: [ (mkOptionName k) ] ++ lib.unique v;
3404
}
3405
settings;
3406
in
0 commit comments