mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
style: alejandra $(fd -e nix)
This commit is contained in:
parent
97d9eecd3c
commit
e63304937d
91 changed files with 1422 additions and 1102 deletions
|
|
@ -12,26 +12,28 @@
|
|||
(hasSuffix ".adoc" path || baseNameOf path == "docinfo.html")
|
||||
|| type == "directory";
|
||||
};
|
||||
in stdenvNoCC.mkDerivation {
|
||||
pname = "genso-docs";
|
||||
version = "dev";
|
||||
inherit src;
|
||||
in
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "genso-docs";
|
||||
version = "dev";
|
||||
inherit src;
|
||||
|
||||
ASCIIDOCTOR_OPTS = [
|
||||
"-a" "docinfo=shared"
|
||||
];
|
||||
ASCIIDOCTOR_OPTS = [
|
||||
"-a"
|
||||
"docinfo=shared"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ asciidoctor ];
|
||||
passAsFile = [ "buildCommand" ];
|
||||
buildCommand = ''
|
||||
install -d "$out"
|
||||
ASCIIDOCTOR_SRCS=(
|
||||
$(find "$src" -type f -name '*.adoc' -not -path "$src/inc/*")
|
||||
)
|
||||
asciidoctor \
|
||||
$ASCIIDOCTOR_OPTS \
|
||||
-a docinfodir="$src/" \
|
||||
-a inc="$src/_inc/" \
|
||||
-b html -R "$src" -D "$out" "''${ASCIIDOCTOR_SRCS[@]}"
|
||||
'';
|
||||
}
|
||||
nativeBuildInputs = [asciidoctor];
|
||||
passAsFile = ["buildCommand"];
|
||||
buildCommand = ''
|
||||
install -d "$out"
|
||||
ASCIIDOCTOR_SRCS=(
|
||||
$(find "$src" -type f -name '*.adoc' -not -path "$src/inc/*")
|
||||
)
|
||||
asciidoctor \
|
||||
$ASCIIDOCTOR_OPTS \
|
||||
-a docinfodir="$src/" \
|
||||
-a inc="$src/_inc/" \
|
||||
-b html -R "$src" -D "$out" "''${ASCIIDOCTOR_SRCS[@]}"
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue