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:
parent
b3f23594db
commit
44efdc02f9
|
|
@ -69,14 +69,12 @@
|
||||||
".md" # testing
|
".md" # testing
|
||||||
".adoc" # man pages
|
".adoc" # man pages
|
||||||
".json" # testing samples
|
".json" # testing samples
|
||||||
|
".txt" # might be included with `include_str!`
|
||||||
"rad-cob-multiset" # testing external COBs
|
"rad-cob-multiset" # testing external COBs
|
||||||
]
|
]
|
||||||
||
|
||
|
||||||
# Default filter from crane (allow .rs files)
|
# 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 = lib.cleanSourceWith {
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue