nixos-config/packages/miifox.nix

17 lines
376 B
Nix
Raw Normal View History

2022-04-06 13:59:25 +00:00
miifox-net: { lndir, stdenvNoCC, python3Packages, ... }: stdenvNoCC.mkDerivation {
2022-03-25 13:29:24 +00:00
name = "miifox.net";
srcs = miifox-net;
nativeBuildInputs = [
python3Packages.chevron
2022-04-06 13:59:25 +00:00
lndir
2022-03-25 13:29:24 +00:00
];
buildPhase = ''
chevron -d index.json index.handlebars > index.html
'';
installPhase = ''
mkdir $out
2022-04-06 13:59:25 +00:00
lndir -quiet ${miifox-net} $out
2022-03-25 13:29:24 +00:00
rm $out/index.json
'';
}