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" ];
|
auto-key-locate = [ "local" "dane" "cert" "wkd" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
#services.gpg-agent = {
|
services.gpg-agent = {
|
||||||
#enable = true;
|
enable = true;
|
||||||
#};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,15 +1,16 @@
|
||||||
miifox-net: { stdenvNoCC, python3Packages, ... }: stdenvNoCC.mkDerivation {
|
miifox-net: { lndir, stdenvNoCC, python3Packages, ... }: stdenvNoCC.mkDerivation {
|
||||||
name = "miifox.net";
|
name = "miifox.net";
|
||||||
srcs = miifox-net;
|
srcs = miifox-net;
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
python3Packages.chevron
|
python3Packages.chevron
|
||||||
|
lndir
|
||||||
];
|
];
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
chevron -d index.json index.handlebars > index.html
|
chevron -d index.json index.handlebars > index.html
|
||||||
'';
|
'';
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir $out
|
mkdir $out
|
||||||
cp -r * $out
|
lndir -quiet ${miifox-net} $out
|
||||||
rm $out/index.json
|
rm $out/index.json
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue