http-fstree downloads a json file and converts to service outputs

This commit is contained in:
Daniel Barlow
2024-08-08 15:35:11 +01:00
parent 1e139c22fd
commit d760c2d27b
4 changed files with 76 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
{
fetchurl,
writeFennel,
fennel,
fennelrepl,
runCommand,
lua,
anoia,
linotify,
lualinux,
fetch-freebsd,
openssl,
rxi-json,
stdenv
}:
let name = "http-fstree";
in stdenv.mkDerivation {
inherit name;
src = ./.;
buildInputs = [fetch-freebsd rxi-json openssl lua];
buildPhase = "";
installPhase = ''
mkdir -p $out/bin
cp -p ${writeFennel name {
packages = [
fetch-freebsd
rxi-json
anoia
lualinux
linotify
] ;
mainFunction = "run";
} ./http-fstree.fnl } $out/bin/${name}
'';
}