refactor: split project into multiple crates

This commit is contained in:
Romain Paquet 2025-11-05 20:23:17 +01:00
parent 486af67fc2
commit 857f747524
27 changed files with 308 additions and 222 deletions

View file

@ -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;