Skip to content

Commit

Permalink
Add patches options to channels
Browse files Browse the repository at this point in the history
This is available in underlying flake-utils-plus.
  • Loading branch information
amarshall committed Jan 3, 2022
1 parent 5c94174 commit 5cc6c3d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/mkFlake/options.nix
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,16 @@ let
};
};

patchesOpt = {
patches = mkOption {
type = with types; listOf path;
default = [ ];
description = ''
patches to apply to this channel
'';
};
};

configOpt = {
config = mkOption {
type = with types; pathToOr attrs;
Expand Down Expand Up @@ -403,7 +413,7 @@ let

channelsType = with types; attrsOf (submoduleWith {
modules = [
({ name, ... }: { options = overlaysOpt // configOpt // (inputOpt name); })
({ name, ... }: { options = overlaysOpt // configOpt // (inputOpt name) // patchesOpt; })
];
});

Expand Down

0 comments on commit 5cc6c3d

Please sign in to comment.