Jelajahi Sumber

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>
Burke Libbey 4 bulan lalu
induk
melakukan
2410c8ef00
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 3 3
      flake.nix

+ 3 - 3
flake.nix

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