refactor(docs): allow excluded directories overriding
This commit is contained in:
parent
703ff26742
commit
645fa542ee
1 changed files with 5 additions and 6 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue