From 7b577e31c43d90470ca7fdd30b3e638ff6822591 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 31 May 2025 19:16:23 +0300 Subject: [PATCH] chore(flake): build native dependencies --- flake.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 38d56f366..8da78d399 100644 --- a/flake.nix +++ b/flake.nix @@ -10,19 +10,22 @@ flake-utils.lib.eachDefaultSystem (system: let pkgs = import nixpkgs { inherit system; }; + electron = pkgs.electron_35; build = pkgs.stdenv.mkDerivation (finalAttrs: { pname = "triliumnext-desktop"; version = "0.94.0"; src = pkgs.lib.cleanSource ./.; - nativeBuildInputs = [ - pkgs.pnpm.configHook - pkgs.nodejs + nativeBuildInputs = with pkgs; [ + pnpm.configHook + nodejs + nodejs.python ]; buildPhase = '' patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) node_modules/.pnpm/sass-embedded-linux-x64@1.87.0/node_modules/sass-embedded-linux-x64/dart-sass/src/dart - NX_TUI=false NX_DAEMON=false pnpm nx run desktop:build --outputStyle stream + NX_TUI=false NX_DAEMON=false pnpm nx run desktop:build --outputStyle stream --verbose + NX_TUI=false NX_DAEMON=false npm_config_nodedir=${electron.headers} pnpm nx run desktop:rebuild-deps --outputStyle stream --verbose ''; installPhase = ''