mirror of
https://github.com/RGBCube/Site
synced 2025-08-01 13:37:49 +00:00
Update source filters
This commit is contained in:
parent
27082526dd
commit
6e6471b35c
1 changed files with 9 additions and 5 deletions
14
flake.nix
14
flake.nix
|
@ -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)
|
||||
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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue