diff --git a/pkgs/by-name/an/antares/package.nix b/pkgs/by-name/an/antares/package.nix index bbfa88526faff51..7b9eb3e1f0c8527 100644 --- a/pkgs/by-name/an/antares/package.nix +++ b/pkgs/by-name/an/antares/package.nix @@ -25,19 +25,20 @@ buildNpmPackage rec { buildInputs = [ nodejs ]; buildPhase = '' - # each phase has pre/postHooks. When you make your own phase be sure to still call the hooks - # runHook preBuild - # npm ci - npm run build - # runHook postBuild + runHook preBuild + npm run compile # this project use typescript so we need to compile it + mkdir -p $out/lib/node_modules/${pname} + cp -r dist/* $out/lib/node_modules/${pname} + runHook postBuild ''; + dontNpmBuild = true; env.ELECTRON_SKIP_BINARY_DOWNLOAD = "1"; env.PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD = "1"; postInstall = '' makeWrapper ${electron}/bin/electron $out/bin/${pname} \ - --add-flags $out/lib/node_modules/${pname}/src/main/main.ts + --add-flags $out/lib/node_modules/${pname}/main.js ''; meta = with lib; {