Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(nix): keep Rust template stylesheets in the build source (#9950)

teo983725e5b0a6
diff --git a/nix/cloud-storage.nix b/nix/cloud-storage.nix
index ebe8e6e530..b72977dea3 100644
--- a/nix/cloud-storage.nix
+++ b/nix/cloud-storage.nix
@@ -69,6 +69,13 @@
# the Rust source hash.
routineStartersFilter =
path: _type: builtins.match ".*/crates/routine_program/src/starters/[^/]*\\.ts$" (toString path) != null;
+ # Rust templates (askama, minijinja) include their stylesheets, such as
+ # `services/mcp_auth_proxy/templates/broker_page.css`. Only `templates/`
+ # stylesheets under Rust crates and services: matching every `.css` would
+ # pull the web app into the Rust source hash.
+ templateCssFilter =
+ path: _type:
+ builtins.match ".*/(crates|services)/[^/]+/templates/.*\\.css$" (toString path) != null;
# Rust local HTTP clients embed only the public proxy CA, never its keys.
localCaFilter = path: _type: pkgs.lib.hasSuffix "/infra/local/certs/ca.pem" (toString path);
binFilter = path: _type: builtins.match ".*\\.bin$" path != null;
@@ -79,6 +86,7 @@
|| (pdfiumFilter path type)
|| (assetFilter path type)
|| (routineStartersFilter path type)
+ || (templateCssFilter path type)
|| (binFilter path type)
|| (craneLib.filterCargoSources path type);
cloudStorageSrc = pkgs.lib.cleanSourceWith {