fix: various fixes

This commit is contained in:
fufsob committed 2026-09-15 17:52:49 +00:00
1 parent 303821f43a
commit 2ce8da3f43
18 files changed
+471 -88

No files matched your search

+11 -1
View File
@@ -8,7 +8,17 @@
}:
let
pkgs = import nixpkgs { inherit system; };
nixpkgsPkgs = import nixpkgs { inherit system; };
# lib.hasInfix matches ".*infix.*", which std::regex backtracks through recursively: on
# the ~100 KB proxy-ctl script that overflows the evaluator's stack. Splitting on the
# bare infix walks the text flat. Only the checks' own pkgs; the modules keep lib as is.
pkgs = nixpkgsPkgs // {
lib = nixpkgsPkgs.lib.extend (
_: super: {
hasInfix = infix: content: builtins.length (builtins.split (super.escapeRegex infix) content) > 1;
}
);
};
parserChecks = import ./checks/parsers.nix { inherit pkgs; };
checkLib = import ./checks/lib.nix {
inherit