feat: Brought back the docs generator.

This commit is contained in:
2026-07-27 12:39:13 -04:00
parent 222a0a3452
commit 86a4da6cba
20 changed files with 501 additions and 150 deletions
+8
View File
@@ -91,6 +91,11 @@
buildPhase = ''
runHook preBuild
echo '${version}' > version.txt
# Generate man pages before main build (binary gets clobbered)
odin build . -define:GENDOCS=true -out:gendocs
./gendocs --man
odin build . -o:speed -out:${pname}
runHook postBuild
'';
@@ -98,6 +103,9 @@
installPhase = ''
runHook preInstall
install -Dm755 ${pname} $out/bin/${pname}
mkdir -p $out/share/man/man1
cp docs/man/*.1 $out/share/man/man1/
runHook postInstall
'';
};