22 phocWlroots = wlroots.overrideAttrs (old: {
23 patches = (old.patches or []) ++ [
24 # Revert "layer-shell: error on 0 dimension without anchors"
25 # https://source.puri.sm/Librem5/phosh/-/issues/422
27 name = "0001-Revert-layer-shell-error-on-0-dimension-without-anch.patch";
28 url = "https://source.puri.sm/Librem5/wlroots/-/commit/4f66b0931aaaee65367102e9c4ccb736097412c7.patch";
29 hash = "sha256-2Vy5a4lWh8FP2PN6xRIZv6IlUuLZibT0MYW+EyvVULs=";
32 # xdg-activation: Deduplicate token creation code
34 name = "xdg-activation-deduplicate-token-creation-code.patch";
35 url = "https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/dd03d839ab56c3e5d7c607a8d76e58e0b75edb85.patch";
36 sha256 = "sha256-mxt68MISC24xpaBtVSc1F2W4cyNs5wQowtbUQH9Eqr8=";
39 # seat: Allow to cancel touches
41 name = "seat-Allow-to-cancel-touches.patch";
42 url = "https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/17b2b06633729f1826715c1d0b84614aa3cedb3a.patch";
43 sha256 = "sha256-BAeXa3ZB5TXnlq0ZP2+rZlVXEPWpLP4Wi4TLwoXjkz4=";
47 # https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/13fcdba75cf5f21cfd49c1a05f4fa62f77619b40
48 # which has been merged upstream, but doesn't cleanly apply on to the
49 # latest released version.
50 ./0001-handle-outputs-that-arent-in-the-layout.patch
53 in stdenv.mkDerivation rec {
57 src = fetchFromGitLab {
58 domain = "gitlab.gnome.org";
63 sha256 = "sha256-HPqhro6TE/Ukh4txBPrDoIuDaxSxd/ZkDVZU3+m3GFg=";
81 # For keybindings settings schemas
87 mesonFlags = ["-Dembed-wlroots=disabled"];
90 chmod +x build-aux/post_install.py
91 patchShebangs build-aux/post_install.py
95 description = "Wayland compositor for mobile phones like the Librem 5";
96 homepage = "https://gitlab.gnome.org/World/Phosh/phoc";
97 license = licenses.gpl3Plus;
98 maintainers = with maintainers; [ masipcat zhaofengli ];
99 platforms = platforms.linux;