This commit is contained in:
mtgmonkey 2025-06-07 19:41:35 -04:00
parent c028e21211
commit 6db0ac0470
7 changed files with 136 additions and 0 deletions

30
package.nix Normal file
View file

@ -0,0 +1,30 @@
{
zola,
lib,
stdenv,
...
}:
stdenv.mkDerivation {
pname = "elmskell-blog";
version = "0.1.0";
src = ./.;
nativeBuildInputs = [
zola
];
configurePhase = ''
zola check
'';
buildPhase = ''
zola build
'';
installPhase = ''
mkdir -p $out/wwwroot
cp ./public/* $out/wwwroot/ -r
'';
meta = {
description = "Andromeda's blog, statically served via Zola";
longDescription = "Andromeda's blog, statically served via Zola";
homepage = "https://mtgmonkey.net";
license = lib.licenses.wtfpl;
};
}