From 89d8ffe86d26aa0b41555931976bca82482c79cd Mon Sep 17 00:00:00 2001 From: codex-journal Date: Sat, 7 Feb 2026 17:39:17 -0500 Subject: [PATCH 1/2] fix(nix): add missing Linux deps and GTK wrapper for NixOS builds The flake.nix from #136 was never updated as new features landed, making `nix build` fail on Linux/NixOS. This adds the missing native dependencies (alsa-lib, libayatana-appindicator, glib-networking), libclang for bindgen, wrapGAppsHook3 for GSettings schemas, and runtime environment variables for the devShell. --- flake.nix | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 2d51f933e..afd0c0748 100644 --- a/flake.nix +++ b/flake.nix @@ -13,10 +13,13 @@ packageJson = builtins.fromJSON (builtins.readFile ./package.json); linuxPackages = pkgs.lib.optionals pkgs.stdenv.isLinux [ + pkgs.alsa-lib + pkgs.glib-networking pkgs.gtk3 - pkgs.libxkbcommon + pkgs.libayatana-appindicator pkgs.librsvg pkgs.libsoup_3 + pkgs.libxkbcommon pkgs.webkitgtk_4_1 ]; @@ -25,7 +28,7 @@ version = packageJson.version; src = ./.; nodejs = pkgs.nodejs_20; - npmDepsHash = "sha256-TT9Po/VVzuObcqAkv4HoRSo41IMvouorlPnPTabxcTA="; + npmDepsHash = "sha256-GWBewwZD6Q3wstZCvVYToiRHRPvrVQcPBJGJPvook6o="; npmBuildScript = "build"; installPhase = '' mkdir -p $out @@ -56,6 +59,9 @@ pkgs.cargo-tauri pkgs.cmake pkgs.pkg-config + ] ++ pkgs.lib.optionals pkgs.stdenv.isLinux [ + pkgs.llvmPackages.libclang + pkgs.wrapGAppsHook3 ]; buildInputs = [ @@ -64,6 +70,9 @@ TAURI_CONFIG = tauriConfig; + LIBCLANG_PATH = pkgs.lib.optionalString pkgs.stdenv.isLinux + "${pkgs.llvmPackages.libclang.lib}/lib"; + preBuild = '' mkdir -p dist cp -R ${frontend}/dist/. dist @@ -95,10 +104,16 @@ pkgs.rustc pkgs.rustfmt pkgs.rustPlatform.rustLibSrc + ] ++ pkgs.lib.optionals pkgs.stdenv.isLinux [ + pkgs.llvmPackages.libclang ] ++ linuxPackages; shellHook = '' export RUST_SRC_PATH=${pkgs.rustPlatform.rustLibSrc} + '' + pkgs.lib.optionalString pkgs.stdenv.isLinux '' + export LIBCLANG_PATH="${pkgs.llvmPackages.libclang.lib}/lib" + export LD_LIBRARY_PATH="${pkgs.lib.makeLibraryPath linuxPackages}:$LD_LIBRARY_PATH" + export GIO_MODULE_PATH="${pkgs.glib-networking}/lib/gio/modules" ''; }; From e2246071c24b2f755ef2517fb700eddaa96c5e85 Mon Sep 17 00:00:00 2001 From: codex-journal Date: Sat, 7 Feb 2026 17:43:24 -0500 Subject: [PATCH 2/2] chore: gitignore nix build result symlink --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 5d6fe6d2a..e44067141 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,6 @@ CodexMonitor.zip .codex-worktrees/ .codexmonitor/ public/assets/material-icons/ + +# Nix +result