mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-14 21:04:04 +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 = ./.;
|
||||
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 = {
|
||||
|
||||
Reference in new issue
Block a user