fix(nix): correct Electron binary path to libexec/electron

Electron 41.x in nixpkgs places the binary at libexec/electron/,
not lib/electron/. Without this fix, npm run dev fails with ENOENT.
This commit is contained in:
Enriquefft
2026-04-12 17:55:43 -05:00
parent 64cdc0dd3c
commit 456816ab2e
+1 -1
View File
@@ -97,7 +97,7 @@
# Tell the npm `electron` package to use the Nix-provided binary # Tell the npm `electron` package to use the Nix-provided binary
# instead of downloading its own. vite-plugin-electron respects this. # instead of downloading its own. vite-plugin-electron respects this.
ELECTRON_OVERRIDE_DIST_PATH = "${electron}/lib/electron"; ELECTRON_OVERRIDE_DIST_PATH = "${electron}/libexec/electron";
# Playwright browser path for test:browser / test:e2e # Playwright browser path for test:browser / test:e2e
PLAYWRIGHT_BROWSERS_PATH = "${pkgs.playwright-driver.browsers}"; PLAYWRIGHT_BROWSERS_PATH = "${pkgs.playwright-driver.browsers}";