mirror of
https://github.com/ipetkov/crane.git
synced 2024-11-22 23:17:15 +03:00
Fixes filterCargoSources
example in documentation (#165)
This commit is contained in:
parent
074825a9e8
commit
cc4865cd06
@ -710,7 +710,7 @@ Note that it is possible to compose source filters, especially if
|
||||
```nix
|
||||
let
|
||||
# Only keeps markdown files
|
||||
markdownFilter = path: _type: match ".*md$" path;
|
||||
markdownFilter = path: _type: builtins.match ".*md$" path != null;
|
||||
markdownOrCargo = path: type:
|
||||
(markdownFilter path type) || (lib.filterCargoSources path type);
|
||||
in
|
||||
|
Loading…
Reference in New Issue
Block a user