about summary refs log tree commit diff
path: root/home
diff options
context:
space:
mode:
Diffstat (limited to 'home')
-rw-r--r--home/default.nix22
1 files changed, 20 insertions, 2 deletions
diff --git a/home/default.nix b/home/default.nix
index 0d414f3..02571bb 100644
--- a/home/default.nix
+++ b/home/default.nix
@@ -48,8 +48,26 @@
         (final: prev:
         let
           nixpkgs2311 = import nixpkgs-2311 { system = "x86_64-linux"; };
-        in {
-          sway-unwrapped = nixpkgs2311.pkgs.sway-unwrapped;
+        in rec {
+          sway-unwrapped = (prev.sway-unwrapped.override({ wlroots = prev.wlroots_0_16; }))
+              .overrideAttrs(rec {
+                version = "1.8.1";
+
+                src = prev.fetchFromGitHub {
+                  owner = "swaywm";
+                  repo = "sway";
+                  rev = version;
+                  hash = "sha256-WxnT+le9vneQLFPz2KoBduOI+zfZPhn1fKlaqbPL6/g=";
+                };
+
+                patches = [
+                  (prev.fetchpatch {
+                    name = "Fix-libinput-switch-case.patch";
+                    url = "https://github.com/swaywm/sway/commit/dee032d0a0ecd958c902b88302dc59703d703c7f.patch";
+                    sha256 = "sha256-dx+7MpEiAkxTBnJcsT3/1BO8rYRfNLecXmpAvhqGMD0=";
+                  })
+                ];
+            });
          })
       ];
     };