Commit df48e7e5367e

Vincent Demeester <vincent@sbr.pm>
2026-07-27 13:59:29
fix: resolve build failures after flake update
Fixed llm-agents overlay rename (default → shared-nixpkgs), disabled broken swc package (rustix 0.37 vs new rustc), and pinned libdisplay-info to 0.3.0 for niri 26.04 compatibility.
1 parent 55fb3a9
Changed files (4)
home/common/dev/typescript.nix
@@ -48,7 +48,7 @@
 
     # Build tools
     esbuild # Extremely fast bundler
-    swc # Rust-based transpiler
+    # swc # Rust-based transpiler — broken in nixpkgs (rustix 0.37 vs new rustc)
     turbo # Monorepo build system
 
     # Node version management (for projects requiring specific versions)
lib/default.nix
@@ -39,7 +39,7 @@
           inputs.chick-group.overlays.default
           inputs.go-org-readwise.overlays.default
           inputs.radian.overlays.default
-          inputs.llm-agents.overlays.default
+          inputs.llm-agents.overlays.shared-nixpkgs
 
           # Inline overlays (same as systems/default.nix)
           (_: _prev: {
overlays/default.nix
@@ -38,18 +38,28 @@ in
           hash = "sha256-ehSMsSpE+0k8r+2Vseu8kangsYxToZv3vinynsDp9zs=";
         };
       in
-      prev.niri.overrideAttrs (_old: {
-        version = "26.04";
-        inherit src;
-        postPatch = ''
-          patchShebangs resources/niri-session
-        '';
-        cargoDeps = final.rustPlatform.fetchCargoVendor {
+      (prev.niri.override {
+        # niri 26.04 requires libdisplay-info < 0.4.0, nixpkgs has 0.4.0
+        libdisplay-info = prev.libdisplay-info.overrideAttrs (_old: rec {
+          version = "0.3.0";
+          src = final.fetchurl {
+            url = "https://gitlab.freedesktop.org/emersion/libdisplay-info/-/releases/${version}/downloads/libdisplay-info-${version}.tar.xz";
+            hash = "sha256-aud82Tf5z30TIdNcEWBixJEehEcBCmpxOsQob3qdWYc=";
+          };
+        });
+      }).overrideAttrs
+        (_old: {
+          version = "26.04";
           inherit src;
-          name = "niri-26.04-vendor";
-          hash = "sha256-gfnalA3qI3a9h3PvsxgQLCrzapfjLLkxhTMJpwRh+ro=";
-        };
-      });
+          postPatch = ''
+            patchShebangs resources/niri-session
+          '';
+          cargoDeps = final.rustPlatform.fetchCargoVendor {
+            inherit src;
+            name = "niri-26.04-vendor";
+            hash = "sha256-gfnalA3qI3a9h3PvsxgQLCrzapfjLLkxhTMJpwRh+ro=";
+          };
+        });
 
     searxng = prev.searxng.overrideAttrs (_oldAttrs: {
       version = "0-unstable-2026-03-23";
systems/default.nix
@@ -42,7 +42,7 @@
       inputs.radian.overlays.default
       inputs.agenix.overlays.default
       inputs.nix-cachyos-kernel.overlays.default
-      inputs.llm-agents.overlays.default
+      inputs.llm-agents.overlays.shared-nixpkgs
 
       # Migrate to "modifications"
       (_: prev: {