Skip to content

Commit

Permalink
antares: init 0.7.22
Browse files Browse the repository at this point in the history
  • Loading branch information
hatch01 committed Mar 27, 2024
1 parent 3336625 commit 212ace7
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions pkgs/by-name/an/antares/package.nix
Expand Up @@ -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; {
Expand Down

0 comments on commit 212ace7

Please sign in to comment.