From 36b4dda14a4652e45f7122692f84f81fbda1ad6c Mon Sep 17 00:00:00 2001 From: noe Date: Wed, 14 May 2025 19:04:23 -0700 Subject: [PATCH] brewTea: add staticAssets --- pkgs/brewTea.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/brewTea.nix b/pkgs/brewTea.nix index f75a283..ecaa8e9 100644 --- a/pkgs/brewTea.nix +++ b/pkgs/brewTea.nix @@ -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); } \ No newline at end of file