mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-22 02:50:39 +08:00
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:
@@ -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 = ./.;
|
||||
|
||||
Reference in New Issue
Block a user