nix: use patched version of wlroots in default.nix

This commit is contained in:
Yappaholic 2025-06-22 00:54:45 +03:00
parent 0509728798
commit f922019aef

View file

@ -1,5 +1,6 @@
{ {
lib, lib,
fetchFromGitHub,
libX11, libX11,
libinput, libinput,
libxcb, libxcb,
@ -20,6 +21,15 @@
mmsg, mmsg,
}: let }: let
pname = "maomaowm"; pname = "maomaowm";
# Use patched wlroots from github.com/DreamMaoMao/wlroots
wlroots-git = wlroots.overrideAttrs (final: prev: {
src = fetchFromGitHub {
owner = "DreamMaoMao";
repo = "wlroots";
rev = "afbb5b7c2b14152730b57aa11119b1b16a299d5b";
sha256 = "sha256-pVU+CuiqvduMTpsnDHX/+EWY2qxHX2lXKiVzdGtcnYY=";
};
});
in in
stdenv.mkDerivation { stdenv.mkDerivation {
inherit pname; inherit pname;
@ -46,7 +56,7 @@ in
pixman pixman
wayland wayland
wayland-protocols wayland-protocols
wlroots wlroots-git
] ]
++ lib.optionals enableXWayland [ ++ lib.optionals enableXWayland [
libX11 libX11