gnomeExtensions.x11-gestures: can't find Touchegg

This commit is contained in:
Adson Cicilioti 2021-12-03 13:01:59 -03:00
parent 3e892167eb
commit 05e82bfdc2

View File

@ -2,6 +2,7 @@
, ddcutil
, gjs
, xprop
, touchegg
}:
let
# Helper method to reduce redundancy
@ -47,4 +48,12 @@ super: lib.trivial.pipe super [
meta.maintainers = with lib.maintainers; [ rhoriguchi ];
}))
(patchExtension "x11gestures@joseexposito.github.io" (old: {
# Extension can't find Touchegg
# https://github.com/NixOS/nixpkgs/issues/137621
postPatch = ''
substituteInPlace "src/touchegg/ToucheggConfig.js" --replace "GLib.build_filenamev([GLib.DIR_SEPARATOR_S, 'usr', 'share', 'touchegg', 'touchegg.conf'])" "'${touchegg}/share/touchegg/touchegg.conf'"
'';
}))
]