tv urlwatch: add json'

This commit is contained in:
tv 2019-08-12 23:51:23 +02:00
parent 5f22fbed30
commit 4258ff5c0c
1 changed files with 5 additions and 2 deletions

View File

@ -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 = {