flake: Fix source filtering

The more complicated filter for `*.txt` did not work. Filtering by
extension directly is not as precise, but there are not many `*.txt`
files in this repository anyway, so the difference should be
neglegible.
This commit is contained in:
Lorenz Leutgeb
2025-10-17 13:00:30 +02:00
parent b3f23594db
commit 44efdc02f9
+2 -4
View File
@@ -69,14 +69,12 @@
".md" # testing
".adoc" # man pages
".json" # testing samples
".txt" # might be included with `include_str!`
"rad-cob-multiset" # testing external COBs
]
||
# Default filter from crane (allow .rs files)
(rustup.craneLib.filterCargoSources path type)
||
# *.txt files might be included with `include_str!`
(builtins.isList (builtins.match ''/?crates/(.*/.*\.txt)'' path));
(rustup.craneLib.filterCargoSources path type);
src = lib.cleanSourceWith {
src = ./.;