urlwatch: admit dict-based filter lists
This commit is contained in:
parent
9316f445b6
commit
38062bf066
|
@ -71,7 +71,7 @@ let
|
||||||
description = "URL to watch.";
|
description = "URL to watch.";
|
||||||
example = [
|
example = [
|
||||||
https://nixos.org/channels/nixos-unstable/git-revision
|
https://nixos.org/channels/nixos-unstable/git-revision
|
||||||
{ url = http://localhost ; filter = "grep:important.*stuff"; }
|
{ url = http://localhost ; filter = [ (grep "important.*stuff") ]; }
|
||||||
];
|
];
|
||||||
apply = map (x: getAttr (typeOf x) {
|
apply = map (x: getAttr (typeOf x) {
|
||||||
set = x;
|
set = x;
|
||||||
|
@ -211,7 +211,9 @@ let
|
||||||
};
|
};
|
||||||
filter = mkOption {
|
filter = mkOption {
|
||||||
default = null;
|
default = null;
|
||||||
type = with types; nullOr str; # TODO nullOr subtypes.filter
|
type =
|
||||||
|
with types;
|
||||||
|
nullOr (either str (listOf (pkgs.formats.json {}).type));
|
||||||
};
|
};
|
||||||
ignore_cached = mkOption {
|
ignore_cached = mkOption {
|
||||||
default = null;
|
default = null;
|
||||||
|
|
Loading…
Reference in a new issue