flake: Keep `crates/**/*.txt` files for build

Fix builds broken due to `include_str!` failing to read a text file.
This commit is contained in:
Lorenz Leutgeb 2025-10-02 00:21:49 +02:00 committed by Fintan Halpenny
parent 9954a79490
commit 0095fdc585
1 changed files with 4 additions and 1 deletions

View File

@ -73,7 +73,10 @@
]
||
# Default filter from crane (allow .rs files)
(rustup.craneLib.filterCargoSources path type);
(rustup.craneLib.filterCargoSources path type)
||
# *.txt files might be included with `include_str!`
(builtins.isList (builtins.match ''/?crates/(.*/.*\.txt)'' path));
src = lib.cleanSourceWith {
src = ./.;