diff options
author | sefidel <contact@sefidel.net> | 2024-08-04 21:48:23 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2024-08-04 21:48:23 +0900 |
commit | 16ac3420ffdd707b96f39cdf14aebaf1ca81a137 (patch) | |
tree | 246d6931d08f9dcb69e38937bb4555e7efa91259 | |
parent | 9303d0d65de321812cf7a6205bcf3337b1b3e18e (diff) | |
download | nixrc-16ac3420ffdd707b96f39cdf14aebaf1ca81a137.tar.gz nixrc-16ac3420ffdd707b96f39cdf14aebaf1ca81a137.zip |
fix(nixos/haruka): fix sway mesa version mismatch
* pin sway version instead of pulling from nixpkgs2311
-rw-r--r-- | home/default.nix | 22 |
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="; + }) + ]; + }); }) ]; }; |