Skip to content

Commit

Permalink
Set raw
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed Feb 18, 2024
1 parent 94283df commit 2545f40
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion modules/hook.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@


let
inherit (lib) mkOption types;
inherit (lib) concatStringsSep mkOption types;
cfg = config.options;
mergeExcludes =
excludes:
if excludes == [ ] then "^$" else "(${concatStringsSep "|" excludes})";
in
{
options = {
Expand Down Expand Up @@ -153,4 +156,14 @@ in
'';
};
};

config =
{
raw =
{
inherit (config) name entry language files types types_or pass_filenames fail_fast require_serial stages verbose always_run;
id = config.name;
exclude = mergeExcludes config.excludes;
};
};
}

0 comments on commit 2545f40

Please sign in to comment.