Skip to content

Commit

Permalink
Merge pull request #510 from cachix/fix-508
Browse files Browse the repository at this point in the history
statix: skip adding `--ignore` if empty
  • Loading branch information
sandydoo authored Oct 11, 2024
2 parents 6d7586d + 6a3d0eb commit 06bb597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3485,7 +3485,7 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.ormol
{
# instead of repeating the option name for each element,
# create a single option with a space-separated list of unique values.
mkList = k: v: [ (mkOptionName k) ] ++ lib.unique v;
mkList = k: v: if v == [ ] then [ ] else [ (mkOptionName k) ] ++ lib.unique v;
}
settings;
in
Expand Down

0 comments on commit 06bb597

Please sign in to comment.