closes #1; openapi! yay

This commit is contained in:
Reid 2025-08-03 20:42:31 -07:00
parent b560060b45
commit 7b15834f17
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD
16 changed files with 519 additions and 341 deletions

View file

@ -25,7 +25,7 @@
# uncomment this and let the build fail, then get the current hash
# very scuffed but endorsed!
# npmDepsHash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
npmDepsHash = "sha256-hMI010P3lJIMCMaj9HYUZopMAWaNQMCG1QXk/OdV1u4=";
npmDepsHash = "sha256-1p/QMZQoFwXxXxlTYTtdHQ3O7p+RSzD3RpoKRB40CHg=";
nativeBuildInputs = with pkgs; [ makeWrapper ];
@ -38,7 +38,7 @@
mv node_modules dist views public $out/
makeWrapper ${pkgs.nodejs-slim}/bin/node $out/bin/amdl \
--prefix PATH : ${makeBinPath buildInputs} \
--add-flags "$out/dist/index.js" \
--add-flags "$out/dist/src/index.js" \
--set VIEWS_DIR $out/views \
--set PUBLIC_DIR $out/public