forked from extern/flakelight
Fix option type for formatter
Since formatters are system dependent, the formatter option must be a function.
This commit is contained in:
parent
9099db6c84
commit
817f6775b6
@ -5,13 +5,13 @@
|
||||
{ config, src, lib, flakelight, genSystems, ... }:
|
||||
let
|
||||
inherit (lib) mkDefault mkMerge mkOption mkIf mapAttrsToList;
|
||||
inherit (lib.types) lazyAttrsOf nullOr package str;
|
||||
inherit (lib.types) functionTo lazyAttrsOf nullOr package str;
|
||||
inherit (flakelight.types) optFunctionTo;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
formatter = mkOption {
|
||||
type = nullOr (optFunctionTo package);
|
||||
type = nullOr (functionTo package);
|
||||
default = null;
|
||||
};
|
||||
formatters = mkOption {
|
||||
|
Loading…
Reference in New Issue
Block a user