brewTea: add staticAssets

This commit is contained in:
41666 2025-05-14 19:04:23 -07:00
parent 5d6d06bda7
commit 36b4dda14a

View file

@ -13,6 +13,7 @@
# otherwise set by frontmatter
defaultLayout ? "default.html",
staticAssets ? [],
allowFailedRenders ? true,
}: let
markdoll = "${markdollParser}/bin/markdoll";
@ -118,9 +119,10 @@ in pkgs.stdenvNoCC.mkDerivation {
render_final $file $outFile $outFile.tmp.render
done
'';
installPhase = ''
cp -rv dist $out
'';
'' + pkgs.lib.concatString (map path: "cp -rv ${path} $out/${path}; " staticAssets);
}