Merge pull request #58258 from teozkr/buildRustCrate-fix-include
buildRustCrate: Fix `include` filter
This commit is contained in:
commit
7be93a4ca7
@ -14,9 +14,8 @@
|
|||||||
include = includedFiles: src: builtins.filterSource (path: type:
|
include = includedFiles: src: builtins.filterSource (path: type:
|
||||||
lib.lists.any (f:
|
lib.lists.any (f:
|
||||||
let p = toString (src + ("/" + f));
|
let p = toString (src + ("/" + f));
|
||||||
suff = lib.strings.removePrefix p path;
|
|
||||||
in
|
in
|
||||||
suff == "" || (lib.strings.hasPrefix "/" suff)
|
p == path || (lib.strings.hasPrefix (p + "/") path)
|
||||||
) includedFiles
|
) includedFiles
|
||||||
) src;
|
) src;
|
||||||
exclude = excludedFiles: src: builtins.filterSource (path: type:
|
exclude = excludedFiles: src: builtins.filterSource (path: type:
|
||||||
|
Loading…
Reference in New Issue
Block a user