From 212ace7eb6cc168406a8d229748f06aff4b7325a Mon Sep 17 00:00:00 2001 From: eymeric Date: Wed, 27 Mar 2024 11:50:45 +0100 Subject: [PATCH] antares: init 0.7.22 --- pkgs/by-name/an/antares/package.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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; {