rename http-fstree => json-to-fstree

it works for file urls as well, not just http
This commit is contained in:
Daniel Barlow
2024-08-28 19:12:00 +01:00
parent da95a9fa62
commit d5d621f310
4 changed files with 6 additions and 6 deletions

View File

@@ -1,17 +1,17 @@
{
liminix, lib, http-fstree, serviceFns
liminix, lib, json-to-fstree, serviceFns
}:
{ name, url, interval } :
let
inherit (liminix.services) oneshot longrun;
in longrun {
inherit name;
buildInputs = [ http-fstree ];
buildInputs = [ json-to-fstree ];
run = ''
. ${serviceFns}
( in_outputs ${name}
while : ; do
${http-fstree}/bin/http-fstree ${url} .
${json-to-fstree}/bin/json-to-fstree ${url} .
sleep ${builtins.toString (interval * 60)}
done
)