From 2e78aa69dfbf41b8bfbc97cc3d4e6b6558376259 Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Fri, 30 Oct 2026 19:46:59 -0700 Subject: [PATCH] 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. --- flake.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index e97593cf..f1d43f51 100644 --- a/flake.nix +++ b/flake.nix @@ -184,10 +184,14 @@ src = ./.; filter = path: type: - (craneLib.filterCargoSources path type) - || (pkgs.lib.hasInfix "/docs/" path) - || (builtins.match ".*/docs/.*" path != null) - || (builtins.match ".*/komorebic/fixtures/.*" path != null); + # the other platforms' trees have their own workspaces and are built by their own outputs + !(pkgs.lib.hasInfix "/komorebi-for-kde" path || pkgs.lib.hasInfix "/komorebi-for-mac" path) + && ( + (craneLib.filterCargoSources path type) + || (pkgs.lib.hasInfix "/docs/" path) + || (builtins.match ".*/docs/.*" path != null) + || (builtins.match ".*/komorebic/fixtures/.*" path != null) + ); }; commonArgs = {