nixos-config/packages/miifox.nix

17 lines
400 B
Nix

miifox-net: { lndir, stdenvNoCC, python3Packages, ... }: stdenvNoCC.mkDerivation {
name = "miifox.net";
srcs = miifox-net;
nativeBuildInputs = [
python3Packages.chevron
lndir
];
buildPhase = ''
chevron -d index.json index.handlebars > index.html
'';
installPhase = ''
mkdir $out
lndir -silent ${miifox-net} $out
cp index.html $out
rm $out/index.json
'';
}