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 | 47b8d6dfec7e5d3dec225933626597383030e547 (patch) | |
tree | 1faa5657ed663a301443f23d8ee4a23528a27d65 /tv/2configs | |
parent | 248738cb9caafd2662e4d933139e0e6908ce03ad (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 40dc7d2..4fb1110 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 = { |