Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions programs/sqlfluff.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ in
"--disable-progress-bar"
"--processes"
"0"
]
++ lib.optionals (cfg.configFile != null) [
"--config"
"${cfg.configFile}"
];
includes = [ "*.sql" ];
})
Expand All @@ -58,6 +62,12 @@ in
default = null;
example = "sqlite";
};

configFile = lib.mkOption {
description = "The config file to pass when formatting";
type = lib.types.path;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try this to fix the CI:

Suggested change
type = lib.types.path;
type = lib.types.nullOr lib.types.path;

default = null;
};
};

config = lib.mkIf cfg.enable {
Expand Down