build(nix): keep the other platforms' trees out of the Windows build source

Excludes /komorebi-for-kde and /komorebi-for-mac from the Windows crane source filter so their edits do not invalidate Windows builds and their Cargo.lock files are not swept in. Verified: the Windows clippy check still passes.
This commit is contained in:
LGUG2Z committed 2026-10-31 01:37:53 -07:00
1 parent 4712ea3e96
commit 2e78aa69df
1 file changed
+8 -4
+8 -4
View File
@@ -184,10 +184,14 @@
src = ./.; src = ./.;
filter = filter =
path: type: path: type:
(craneLib.filterCargoSources path type) # the other platforms' trees have their own workspaces and are built by their own outputs
|| (pkgs.lib.hasInfix "/docs/" path) !(pkgs.lib.hasInfix "/komorebi-for-kde" path || pkgs.lib.hasInfix "/komorebi-for-mac" path)
|| (builtins.match ".*/docs/.*" path != null) && (
|| (builtins.match ".*/komorebic/fixtures/.*" path != null); (craneLib.filterCargoSources path type)
|| (pkgs.lib.hasInfix "/docs/" path)
|| (builtins.match ".*/docs/.*" path != null)
|| (builtins.match ".*/komorebic/fixtures/.*" path != null)
);
}; };
commonArgs = { commonArgs = {