Skip to content

Commit

Permalink
Merge #118
Browse files Browse the repository at this point in the history
118: Add patches options to channels r=Pacman99 a=amarshall

This is available in underlying flake-utils-plus.

Co-authored-by: Andrew Marshall <andrew@johnandrewmarshall.com>
  • Loading branch information
bors[bot] and amarshall authored Jan 3, 2022
2 parents 5c94174 + 5cc6c3d commit feeddc0
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 feeddc0

Please sign in to comment.