Merge pull request #77153 from andir/buildRustCrateHelpers-fix
buildRustCrate: fixup usage of `builtins.filterSource`
This commit is contained in:
commit
2c4c7c929c
1 changed files with 2 additions and 2 deletions
|
@ -11,14 +11,14 @@
|
|||
else
|
||||
features
|
||||
) [] (lib.attrNames feat);
|
||||
include = includedFiles: src: lib.filterSource (path: type:
|
||||
include = includedFiles: src: builtins.filterSource (path: type:
|
||||
lib.any (f:
|
||||
let p = toString (src + ("/" + f));
|
||||
in
|
||||
p == path || (lib.strings.hasPrefix (p + "/") path)
|
||||
) includedFiles
|
||||
) src;
|
||||
exclude = excludedFiles: src: lib.filterSource (path: type:
|
||||
exclude = excludedFiles: src: builtins.filterSource (path: type:
|
||||
lib.all (f:
|
||||
!lib.strings.hasPrefix (toString (src + ("/" + f))) path
|
||||
) excludedFiles
|
||||
|
|
Loading…
Reference in a new issue