diff options
author | tv <tv@krebsco.de> | 2019-08-12 23:51:43 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2019-08-12 23:53:03 +0200 |
commit | f319d31e3641ec4b9e235cb77933d5c98f0cd6a4 (patch) | |
tree | 266fe36554af9f40f9a1293faeecce68f6c4d35c /tv | |
parent | 4258ff5c0c5e287c986b7199158dee1b4c49f1d9 (diff) |
tv urlwatch: add xml and xml'
Diffstat (limited to 'tv')
-rw-r--r-- | tv/2configs/urlwatch.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tv/2configs/urlwatch.nix b/tv/2configs/urlwatch.nix index 4fb111063..b2364e6e6 100644 --- a/tv/2configs/urlwatch.nix +++ b/tv/2configs/urlwatch.nix @@ -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; |