| 
									
										
										
										
											2025-05-31 17:41:56 +03:00
										 |  |  | { | 
					
						
							|  |  |  |   description = "A very basic flake"; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   inputs = { | 
					
						
							|  |  |  |     nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; | 
					
						
							| 
									
										
										
										
											2025-05-31 18:08:06 +03:00
										 |  |  |     flake-utils.url = "github:numtide/flake-utils"; | 
					
						
							| 
									
										
										
										
											2025-05-31 17:41:56 +03:00
										 |  |  |   }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-05-31 18:08:06 +03:00
										 |  |  |   outputs = { self, nixpkgs, flake-utils }: | 
					
						
							|  |  |  |     flake-utils.lib.eachDefaultSystem (system: | 
					
						
							|  |  |  |       let | 
					
						
							|  |  |  |         pkgs = import nixpkgs { inherit system; }; | 
					
						
							|  |  |  |         build = pkgs.stdenv.mkDerivation (finalAttrs: { | 
					
						
							|  |  |  |           pname = "triliumnext-desktop"; | 
					
						
							|  |  |  |           version = "0.94.0"; | 
					
						
							|  |  |  |           src = pkgs.lib.cleanSource ./.; | 
					
						
							| 
									
										
										
										
											2025-05-31 17:41:56 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-05-31 18:08:06 +03:00
										 |  |  |           nativeBuildInputs = [ | 
					
						
							|  |  |  |             pkgs.pnpm.configHook | 
					
						
							|  |  |  |             pkgs.nodejs | 
					
						
							|  |  |  |           ]; | 
					
						
							| 
									
										
										
										
											2025-05-31 17:41:56 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-05-31 18:08:06 +03:00
										 |  |  |           buildPhase = ''
 | 
					
						
							| 
									
										
										
										
											2025-05-31 18:21:08 +03:00
										 |  |  |             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 | 
					
						
							| 
									
										
										
										
											2025-05-31 18:23:18 +03:00
										 |  |  |             NX_TUI=false NX_DAEMON=false pnpm nx run desktop:build --outputStyle stream | 
					
						
							| 
									
										
										
										
											2025-05-31 18:08:06 +03:00
										 |  |  |           '';
 | 
					
						
							| 
									
										
										
										
											2025-05-31 17:41:56 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-05-31 18:08:06 +03:00
										 |  |  |           installPhase = ''
 | 
					
						
							|  |  |  |             mkdir -p $out             | 
					
						
							|  |  |  |           '';
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |           pnpmDeps = pkgs.pnpm.fetchDeps { | 
					
						
							|  |  |  |             inherit (finalAttrs) pname version src; | 
					
						
							|  |  |  |             hash = "sha256-xC0u1h92wtthylOAw+IF9mpFi0c4xajJhUcA9pqzcAw="; | 
					
						
							|  |  |  |           }; | 
					
						
							|  |  |  |         }); | 
					
						
							|  |  |  |       in { | 
					
						
							|  |  |  |         packages.default = build; | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |     ); | 
					
						
							| 
									
										
										
										
											2025-05-31 17:41:56 +03:00
										 |  |  | } |