Fix flake.nix to use correct src/qmd.ts path

The installPhase was trying to copy qmd.ts from root, but it's at
src/qmd.ts. Updated to copy the src directory and point the wrapper
to the correct path.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Burke Libbey 2026-01-03 18:18:08 -05:00
parent c85889df12
commit 2410c8ef00

View File

@ -31,11 +31,11 @@
mkdir -p $out/bin
cp -r node_modules $out/lib/qmd/
cp qmd.ts $out/lib/qmd/
cp -r src $out/lib/qmd/
cp package.json $out/lib/qmd/
makeWrapper ${pkgs.bun}/bin/bun $out/bin/qmd \
--add-flags "$out/lib/qmd/qmd.ts" \
--add-flags "$out/lib/qmd/src/qmd.ts" \
--set DYLD_LIBRARY_PATH "${pkgs.sqlite.out}/lib" \
--set LD_LIBRARY_PATH "${pkgs.sqlite.out}/lib"
'';
@ -67,7 +67,7 @@
shellHook = ''
echo "QMD development shell"
echo "Run: bun qmd.ts <command>"
echo "Run: bun src/qmd.ts <command>"
'';
};
}