1
Fork 0
mirror of https://github.com/RGBCube/Site synced 2025-08-01 13:37:49 +00:00

Update source filters

This commit is contained in:
RGBCube 2024-01-08 16:49:58 +03:00
parent 27082526dd
commit 6e6471b35c
No known key found for this signature in database

View file

@ -47,15 +47,19 @@
crane = inputs.crane.lib.${system}.overrideToolchain toolchain;
cssFilter = path: type: builtins.match ".*css$" path != null;
gifFilter = path: type: builtins.match ".*gif$" path != null;
jsFilter = path: type: builtins.match ".*js$" path != null;
assetFilter = path: type: type == "directory" && builtins.match "^assets.*" path != null;
mdFilter = path: type: builtins.match ".*md$" path != null;
woff2Filter = path: type: builtins.match ".*woff2$" path != null;
src = lib.cleanSourceWith {
src = crane.path ./.;
filter = path: type: (crane.filterCargoSources path type)
|| (cssFilter path type)
|| (gifFilter path type)
|| (jsFilter path type)
|| (assetFilter path type);
|| (mdFilter path type)
|| (woff2Filter path type);
};
srcArgs = {