tv urlwatch: add xml and xml'

This commit is contained in:
tv 2019-08-12 23:51:43 +02:00
parent 4258ff5c0c
commit f319d31e36
1 changed files with 7 additions and 0 deletions

View File

@ -7,6 +7,13 @@ with import <stockholm/lib>;
concatMapStringsSep " " shell.escape (toList args)
}";
};
xml = xml' ["--format" "-"];
xml' = args: url: {
inherit url;
filter = "system:${pkgs.libxml2}/bin/xmllint ${
concatMapStringsSep " " shell.escape (toList args)
}";
};
in {
krebs.urlwatch = {
enable = true;