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
)

View File

@ -69,9 +69,9 @@ in {
gen_init_cpio = callPackage ./gen_init_cpio { };
go-l2tp = callPackage ./go-l2tp { };
hi = callPackage ./hi { };
http-fstree = callPackage ./http-fstree { };
ifwait = callPackage ./ifwait { };
initramfs-peek = callPackage ./initramfs-peek { };
json-to-fstree = callPackage ./json-to-fstree { };
kernel-backport = callPackage ./kernel-backport { };
kmodloader = callPackage ./kmodloader { };
levitate = callPackage ./levitate { };

View File

@ -13,7 +13,7 @@
rxi-json,
stdenv
}:
let name = "http-fstree";
let name = "json-to-fstree";
in stdenv.mkDerivation {
inherit name;
src = ./.;
@ -32,6 +32,6 @@ in stdenv.mkDerivation {
linotify
] ;
mainFunction = "run";
} ./http-fstree.fnl } $out/bin/${name}
} ./${name}.fnl } $out/bin/${name}
'';
}