refactor: split project into multiple crates
This commit is contained in:
parent
486af67fc2
commit
857f747524
27 changed files with 308 additions and 222 deletions
|
|
@ -26,10 +26,15 @@
|
|||
let
|
||||
craneLib = crane.mkLib pkgs;
|
||||
|
||||
pestFilter = path: _type: (builtins.match ".*\.pest$" path) != null;
|
||||
sourceFilter = path: type: (craneLib.filterCargoSources path type) || (pestFilter path type);
|
||||
sourceFilter =
|
||||
path: type:
|
||||
builtins.any (suffix: lib.hasSuffix suffix path) [
|
||||
".pest"
|
||||
]
|
||||
|| (craneLib.filterCargoSources path type);
|
||||
|
||||
lilac-crate = craneLib.buildPackage ({
|
||||
pname = "lilac";
|
||||
src = lib.cleanSourceWith {
|
||||
src = ./.;
|
||||
filter = sourceFilter;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue