style: alejandra $(fd -e nix)

This commit is contained in:
Kat Inskip 2024-03-13 15:08:42 -07:00
parent 97d9eecd3c
commit e63304937d
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
91 changed files with 1422 additions and 1102 deletions

View file

@ -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[@]}"
'';
}