nixos: sway: add patch: Tray D-Bus Menu

This commit is contained in:
Guanran Wang 2024-01-16 13:03:50 +08:00
parent c228e8ce54
commit b5998cbfe9
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8

View file

@ -1,5 +1,14 @@
{addPatches, ...}: _final: prev: { {addPatches, ...}: _final: prev: {
sway-unwrapped = addPatches prev.sway-unwrapped [ sway-unwrapped = addPatches prev.sway-unwrapped [
# Tray D-Bus Menu
# https://github.com/swaywm/sway/pull/6249
(prev.runCommand "2f304ef0532a45d00b2ec2c7fc63adef0aec7607.patch" {} ''
cat ${prev.fetchpatch {
url = "https://github.com/swaywm/sway/commit/2f304ef0532a45d00b2ec2c7fc63adef0aec7607.patch";
hash = "sha256-nd+Z6A7GE5Go7QxXOI+hiLWQiXegsQatcNfxEsXgamI=";
}} | sed "s/int surface_x, surface_y, surface_width, surface_height;/int surface_x, surface_y, surface_width, surface_height = 0;/g" > $out
'')
# text_input: Implement input-method popups # text_input: Implement input-method popups
# https://github.com/swaywm/sway/pull/7226 # https://github.com/swaywm/sway/pull/7226
(prev.fetchpatch { (prev.fetchpatch {