refactor(docs): allow excluded directories overriding

This commit is contained in:
Sk7Str1p3 2026-07-26 18:31:29 +00:00
parent 703ff26742
commit 645fa542ee
Signed by: Sk7Str1p3
SSH key fingerprint: SHA256:GcXqjfo0IHK280c6aH9o5SmcOWyqMS8gjfOtDQ3gr/Q

View file

@ -3,6 +3,11 @@
mdbook,
nixdoc,
lib,
excluded ? [
".*flake\\.nix$"
"^docs/.*"
]
}:
stdenvNoCC.mkDerivation {
name = "SkyOS-book";
@ -13,12 +18,6 @@ stdenvNoCC.mkDerivation {
];
patchPhase =
let
excluded = [
".*flake\\.nix$"
"^docs/.*"
];
shouldExclude = relPath: lib.any (pattern: builtins.match pattern relPath != null) excluded;
nixFiles =