fix: Update regex for web template in uwulib build
This commit is contained in:
parent
38bf1ccbcc
commit
a9a39e6d5e
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue