mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-12-03 13:44:14 +01:00
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:
1 parent
4712ea3e96
commit
2e78aa69df
1 file changed
+8
-4
@@ -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 = {
|
||||||
|
|||||||
Reference in new issue
Block a user