diff options
author | tv <tv@krebsco.de> | 2019-08-12 23:51:23 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2019-08-12 23:51:23 +0200 |
commit | 4258ff5c0c5e287c986b7199158dee1b4c49f1d9 (patch) | |
tree | 836852bf4d8da5914455f361da98728ed9f3de37 /tv/2configs | |
parent | 5f22fbed30828d6e297554060744f57cd2af556e (diff) |
tv urlwatch: add json'
Diffstat (limited to 'tv/2configs')
-rw-r--r-- | tv/2configs/urlwatch.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tv/2configs/urlwatch.nix b/tv/2configs/urlwatch.nix index 40dc7d237..4fb111063 100644 --- a/tv/2configs/urlwatch.nix +++ b/tv/2configs/urlwatch.nix @@ -1,8 +1,11 @@ with import <stockholm/lib>; { config, pkgs, ... }: let - json = url: { + json = json' ["."]; + json' = args: url: { inherit url; - filter = "system:${pkgs.jq}/bin/jq ."; + filter = "system:${pkgs.jq}/bin/jq ${ + concatMapStringsSep " " shell.escape (toList args) + }"; }; in { krebs.urlwatch = { |