fix: Update regex for web template in uwulib build

This commit is contained in:
Henry-Hiles 2026-02-15 16:50:52 -05:00 committed by Ellis Git
parent 38bf1ccbcc
commit a9a39e6d5e

View file

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