mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
fix: Update regex for web template in uwulib build
This commit is contained in:
@@ -20,7 +20,7 @@ rec {
|
|||||||
# we need to keep the `web` directory which would be filtered out by the regular source filtering function
|
# we need to keep the `web` directory which would be filtered out by the regular source filtering function
|
||||||
#
|
#
|
||||||
# https://crane.dev/API.html#cranelibcleancargosource
|
# https://crane.dev/API.html#cranelibcleancargosource
|
||||||
isWebTemplate = path: _type: builtins.match ".*src/web.*" path != null;
|
isWebTemplate = path: _type: builtins.match ".*(src/(web|service)|docs).*" path != null;
|
||||||
isRust = craneLib.filterCargoSources;
|
isRust = craneLib.filterCargoSources;
|
||||||
isNix = path: _type: builtins.match ".+/nix.*" path != null;
|
isNix = path: _type: builtins.match ".+/nix.*" path != null;
|
||||||
webOrRustNotNix = p: t: !(isNix p t) && (isWebTemplate p t || isRust p t);
|
webOrRustNotNix = p: t: !(isNix p t) && (isWebTemplate p t || isRust p t);
|
||||||
|
|||||||
Reference in New Issue
Block a user