Make miifox.net not as huge
This commit is contained in:
parent
d41a4844de
commit
b294f369b8
2 changed files with 6 additions and 5 deletions
|
@ -49,7 +49,7 @@
|
|||
auto-key-locate = [ "local" "dane" "cert" "wkd" ];
|
||||
};
|
||||
};
|
||||
#services.gpg-agent = {
|
||||
#enable = true;
|
||||
#};
|
||||
services.gpg-agent = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,15 +1,16 @@
|
|||
miifox-net: { stdenvNoCC, python3Packages, ... }: stdenvNoCC.mkDerivation {
|
||||
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
|
||||
cp -r * $out
|
||||
lndir -quiet ${miifox-net} $out
|
||||
rm $out/index.json
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue