buildRustCrate: fixup usage of builtins.filterSource
While unifying most of the lib function calls I accidentially changed the filterSource functions as well. Since there were no tests I ended up forgetting about this case (even thought I ran into it…).
This commit is contained in:
parent
cca0c894a1
commit
6383b42dae
@ -11,14 +11,14 @@
|
|||||||
else
|
else
|
||||||
features
|
features
|
||||||
) [] (lib.attrNames feat);
|
) [] (lib.attrNames feat);
|
||||||
include = includedFiles: src: lib.filterSource (path: type:
|
include = includedFiles: src: builtins.filterSource (path: type:
|
||||||
lib.any (f:
|
lib.any (f:
|
||||||
let p = toString (src + ("/" + f));
|
let p = toString (src + ("/" + f));
|
||||||
in
|
in
|
||||||
p == path || (lib.strings.hasPrefix (p + "/") path)
|
p == path || (lib.strings.hasPrefix (p + "/") path)
|
||||||
) includedFiles
|
) includedFiles
|
||||||
) src;
|
) src;
|
||||||
exclude = excludedFiles: src: lib.filterSource (path: type:
|
exclude = excludedFiles: src: builtins.filterSource (path: type:
|
||||||
lib.all (f:
|
lib.all (f:
|
||||||
!lib.strings.hasPrefix (toString (src + ("/" + f))) path
|
!lib.strings.hasPrefix (toString (src + ("/" + f))) path
|
||||||
) excludedFiles
|
) excludedFiles
|
||||||
|
Loading…
x
Reference in New Issue
Block a user