mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	chore(flake): build native dependencies
This commit is contained in:
		
							
								
								
									
										11
									
								
								flake.nix
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								flake.nix
									
									
									
									
									
								
							| @@ -10,19 +10,22 @@ | |||||||
|     flake-utils.lib.eachDefaultSystem (system: |     flake-utils.lib.eachDefaultSystem (system: | ||||||
|       let |       let | ||||||
|         pkgs = import nixpkgs { inherit system; }; |         pkgs = import nixpkgs { inherit system; }; | ||||||
|  |         electron = pkgs.electron_35; | ||||||
|         build = pkgs.stdenv.mkDerivation (finalAttrs: { |         build = pkgs.stdenv.mkDerivation (finalAttrs: { | ||||||
|           pname = "triliumnext-desktop"; |           pname = "triliumnext-desktop"; | ||||||
|           version = "0.94.0"; |           version = "0.94.0"; | ||||||
|           src = pkgs.lib.cleanSource ./.; |           src = pkgs.lib.cleanSource ./.; | ||||||
|  |  | ||||||
|           nativeBuildInputs = [ |           nativeBuildInputs = with pkgs; [ | ||||||
|             pkgs.pnpm.configHook |             pnpm.configHook | ||||||
|             pkgs.nodejs |             nodejs | ||||||
|  |             nodejs.python | ||||||
|           ]; |           ]; | ||||||
|  |  | ||||||
|           buildPhase = '' |           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 |             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 = '' |           installPhase = '' | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user