flake: keep .ftl files in the Rust source, for lib's Fluent copy
lib/src/copy/messages.rs include_str!s copy/en-US.ftl, which the source filter dropped, so every package failed to compile synchronicity_lib. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
30c4aeb6cd
commit
07676b9023
1 file changed
+5
-3
@@ -56,8 +56,9 @@
|
||||
|
||||
# Source filtering — include Cargo sources, .slint UI files (the archived
|
||||
# gui-slint app), and data files referenced by include_str!() / include_bytes!():
|
||||
# .txt (lib's wordlist), .svg (gui-app's icons, baked in via assets.rs), and
|
||||
# .cbr (comics.rs's cfg(test)-only RAR fixture).
|
||||
# .txt (lib's wordlist), .svg (gui-app's icons, baked in via assets.rs),
|
||||
# .cbr (comics.rs's cfg(test)-only RAR fixture), and .ftl (lib's Fluent copy,
|
||||
# copy/en-US.ftl).
|
||||
rustSrc = pkgs.lib.cleanSourceWith {
|
||||
src = ./rust;
|
||||
filter = path: type:
|
||||
@@ -65,7 +66,8 @@
|
||||
|| (builtins.match ".*\\.slint$" path != null)
|
||||
|| (builtins.match ".*\\.txt$" path != null)
|
||||
|| (builtins.match ".*\\.svg$" path != null)
|
||||
|| (builtins.match ".*\\.cbr$" path != null);
|
||||
|| (builtins.match ".*\\.cbr$" path != null)
|
||||
|| (builtins.match ".*\\.ftl$" path != null);
|
||||
};
|
||||
|
||||
# Common arguments shared across all builds
|
||||
|
||||
Reference in new issue
Block a user